[llvm] [InstCombine] Combine and->cmp->sel->or-disjoint into and->mul (PR #135274)
Andreas Jonson via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 15 14:13:14 PDT 2025
================
@@ -105,8 +105,8 @@ namespace llvm {
/// Unless \p AllowNonZeroC is true, C will always be 0.
std::optional<DecomposedBitTest>
decomposeBitTestICmp(Value *LHS, Value *RHS, CmpInst::Predicate Pred,
- bool LookThroughTrunc = true,
- bool AllowNonZeroC = false);
+ bool LookThroughTrunc = true, bool AllowNonZeroC = false,
+ bool LookThruBitSel = false);
----------------
andjo403 wrote:
think that the name LookThruBitSel is a bit confusing what is it looking through? maybe something with it matches the bit test pattern also, like allowBitTest or something. but also good to describe it in the comment.
https://github.com/llvm/llvm-project/pull/135274
More information about the llvm-commits
mailing list