[llvm] [InstCombine] Improve folding of `icmp pred (and X, Mask/~Mask), Y)` (PR #81562)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 19:54:53 PST 2024
================
@@ -4068,11 +4068,115 @@ Instruction *InstCombinerImpl::foldSelectICmp(ICmpInst::Predicate Pred,
return nullptr;
}
+// Returns of V is a Mask ((X + 1) & X == 0) or ~Mask (-Pow2OrZero)
----------------
dtcxzyw wrote:
```suggestion
// Returns whether V is a Mask ((X + 1) & X == 0) or ~Mask (-Pow2OrZero)
```
https://github.com/llvm/llvm-project/pull/81562
More information about the llvm-commits
mailing list