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

Jeffrey Byrnes via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 12:07:06 PDT 2025


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

Not sure -- but maybe it has something to do with the thought that `and`->`icmp`->`sel` is the canonical sequence. Thus, we never thought to break the `icmp` into composite parts for `and`.

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


More information about the llvm-commits mailing list