diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2023-09-13 13:45:55 -0500 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2024-03-10 14:33:34 -0500 |
commit | 193b3d6733b7bf606c70749b1b65b6a0daae97d5 (patch) | |
tree | 0c89c52b02eed1626ed3f96cb1536b348eb9c3b6 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | d77eb9ea598f6e56a583eac40f95ca59b3130523 (diff) | |
download | llvm-193b3d6733b7bf606c70749b1b65b6a0daae97d5.zip llvm-193b3d6733b7bf606c70749b1b65b6a0daae97d5.tar.gz llvm-193b3d6733b7bf606c70749b1b65b6a0daae97d5.tar.bz2 |
[InstCombine] Recognize `(icmp eq/ne (and X, ~Mask), 0)` pattern in `foldICmpWithLowBitMaskedVal`
`(icmp eq/ne (and X, ~Mask), 0)` is equivilent to `(icmp eq/ne (and X,
Mask), X` and we sometimes generate the former pattern intentionally
to reduce number of uses of `X`.
Proof: https://alive2.llvm.org/ce/z/3u-usC
Differential Revision: https://reviews.llvm.org/D159329
Closes #81562
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions