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

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 06:58:31 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;
----------------
andjo403 wrote:

yes the using is unused forgot to remove it when I have removed the trunc handling that I hade here. and will add back soon but have removed it now

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


More information about the llvm-commits mailing list