[llvm] [InstCombine] Fold icmp (zext X), (and (trunc Y), Mask) -> icmp X, trunc Y (PR #221189)
armandeep singh via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 12:06:37 PDT 2026
================
@@ -5327,6 +5328,36 @@ Instruction *InstCombinerImpl::foldICmpBinOp(ICmpInst &I,
Value *X;
+ // Catch the mirrored operand order: icmp Pred (and (trunc Y), Mask), (zext
----------------
armandeep23947 wrote:
shortened it up to one line.
https://github.com/llvm/llvm-project/pull/221189
More information about the llvm-commits
mailing list