[llvm] [InstCombine] Combine and->cmp->sel->or-disjoint into and->mul (PR #135274)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 14 18:11:57 PDT 2025


================
@@ -96,10 +97,27 @@ llvm::decomposeBitTestICmp(Value *LHS, Value *RHS, CmpInst::Predicate Pred,
     Pred = ICmpInst::getStrictPredicate(Pred);
   }
 
+  auto decomposeBitMask =
----------------
dtcxzyw wrote:

I am confused why the original code doesn't handle this pattern.
cc @andjo403 


https://github.com/llvm/llvm-project/pull/135274


More information about the llvm-commits mailing list