[llvm] [InstCombine] Prepare foldLogOpOfMaskedICmps to handle trunc to i1. (NFC) (PR #122179)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 06:29:44 PST 2025


================
@@ -165,3 +165,18 @@ llvm::decomposeBitTestICmp(Value *LHS, Value *RHS, CmpInst::Predicate Pred,
 
   return Result;
 }
+
+std::optional<DecomposedBitTest>
+llvm::decomposeBitTest(Value *Cond, bool LookThruTrunc, bool AllowNonZeroC) {
+  using namespace PatternMatch;
----------------
nikic wrote:

Unused?

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


More information about the llvm-commits mailing list