[llvm] [InstCombine] fold `(a == 1 && b != 0) || (a != 0 && b == 0))` to `(a ==0) != (b == 0)` (PR #94915)
Zain Jaffal via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 00:49:56 PDT 2024
zjaffal wrote:
I used isKnownInversion to check for both operands and added tests to check against a constant and to check for pointer compare
https://github.com/llvm/llvm-project/pull/94915
More information about the llvm-commits
mailing list