diff options
author | chenglin.bi <chenglin.bi@linaro.org> | 2023-01-09 10:21:05 +0800 |
---|---|---|
committer | chenglin.bi <chenglin.bi@linaro.org> | 2023-01-09 10:21:17 +0800 |
commit | 33794cffcfdadfffda2c78c73a25ce6fc58596f0 (patch) | |
tree | a86a9bae7ad03777cadcf73b2e17c9a1aa23a891 /clang/lib/Basic/Module.cpp | |
parent | e0e48187e6d8c395237964effe01205de138a708 (diff) | |
download | llvm-33794cffcfdadfffda2c78c73a25ce6fc58596f0.zip llvm-33794cffcfdadfffda2c78c73a25ce6fc58596f0.tar.gz llvm-33794cffcfdadfffda2c78c73a25ce6fc58596f0.tar.bz2 |
[InstCombine] Fold logic-and/logic-or by distributive laws part2
Follow up https://reviews.llvm.org/D139408, support `and/or+select` patterns
X && Z || Y && Z --> (X || Y) && Z
https://alive2.llvm.org/ce/z/EMCkBG
https://alive2.llvm.org/ce/z/Q-YRvr
https://alive2.llvm.org/ce/z/SFkVQc
https://alive2.llvm.org/ce/z/S9MCuJ
https://alive2.llvm.org/ce/z/KZ7zzz
(X || Z) && (Y || Z) --> (X && Y) || Z
https://alive2.llvm.org/ce/z/Ggpa8-
https://alive2.llvm.org/ce/z/nhQRLY
https://alive2.llvm.org/ce/z/zpmEnq
https://alive2.llvm.org/ce/z/7omsrf
https://alive2.llvm.org/ce/z/CWBzBp
Reviewed By: spatel
Differential Revision: https://reviews.llvm.org/D139630
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions