[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:52 PST 2024
================
@@ -564,6 +564,19 @@ inline api_pred_ty<is_negated_power2> m_NegatedPower2(const APInt *&V) {
return V;
}
+struct is_negated_power2_or_zero {
----------------
dtcxzyw wrote:
Could you add some unit tests in `llvm/unittests/IR/PatternMatch.cpp`?
https://github.com/llvm/llvm-project/pull/81562
More information about the llvm-commits
mailing list