aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2023-08-16 21:53:19 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2023-08-16 22:43:05 -0500
commitd3402bc4460acefbc3d5278743601fa090784614 (patch)
tree306742d35a57d34e7e27962362cdddbbfd5a0a52 /clang/lib/Sema/SemaModule.cpp
parent00f03814611e47e1a459b4d287b0e847a34ab9d4 (diff)
downloadllvm-d3402bc4460acefbc3d5278743601fa090784614.zip
llvm-d3402bc4460acefbc3d5278743601fa090784614.tar.gz
llvm-d3402bc4460acefbc3d5278743601fa090784614.tar.bz2
[InstCombine] Expand `foldSelectICmpAndOr` -> `foldSelectICmpAndBinOp` to work for more binops
This just expands on the existing logic that worked for `Or` and applies it to any binop where `0` is the identity value on the RHS i.e: `add`, `or`, `xor`, `shl`, etc... Proofs For Some: https://alive2.llvm.org/ce/z/XZo6JD Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D148414
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions