llvm-project
22328431 - [ValueTracking] Recognize `X op (X != 0)` as non-zero

Commit
1 year ago
[ValueTracking] Recognize `X op (X != 0)` as non-zero The ops supported are: `add`, `sub`, `xor`, `or`, `umax`, `uadd.sat` Proofs: https://alive2.llvm.org/ce/z/8ZMSRg The `add` case actually comes up in SPECInt, the rest are here mostly for completeness. Closes #88579
Author
Committer
Parents
Loading