[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
Mon Sep 14 21:26:09 PDT 2026
================
@@ -6575,6 +6576,27 @@ Instruction *InstCombinerImpl::foldICmpWithZextOrSext(ICmpInst &ICmp) {
return new ICmpInst(ICmp.getUnsignedPredicate(), X, Y);
}
+ // Operand(0) is already known to be a zero extension of X
----------------
armandeep23947 wrote:
removed.
https://github.com/llvm/llvm-project/pull/221189
More information about the llvm-commits
mailing list