[llvm] [InstCombine] fold `(a == c && b != c) || (a != c && b == c))` to `(a == c) == (b != c)` (PR #94915)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 22 00:06:45 PDT 2024
================
@@ -3421,6 +3421,25 @@ Value *InstCombinerImpl::foldAndOrOfICmps(ICmpInst *LHS, ICmpInst *RHS,
return foldAndOrOfICmpsUsingRanges(LHS, RHS, IsAnd);
}
+static Value *foldAorBConst(BinaryOperator &I,
----------------
nikic wrote:
```suggestion
static Value *foldOrOfInversions(BinaryOperator &I,
```
Maybe?
https://github.com/llvm/llvm-project/pull/94915
More information about the llvm-commits
mailing list