Home
last modified time | relevance | path

Searched refs:m_Power2 (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp142 if (!match(V, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectICmpAnd()
621 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndOr()
647 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr()
649 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr()
1637 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in foldSelectInstWithICmp()
H A DInstCombineAndOrXor.cpp799 m_ICmp(Pred, m_Add(m_Value(X), m_Power2(I01)), m_Power2(I1))) && in foldSignedTruncationCheck()
1933 match(Op0, m_OneUse(m_LogicalShift(m_Power2(ShiftC), m_Value(X))))) { in visitAnd()
1952 match(C1, m_Power2())) { in visitAnd()
1968 match(C1, m_Power2())) { in visitAnd()
H A DInstCombineMulDivRem.cpp941 if (match(Op, m_Power2())) in takeLog2()
1126 if (I.isExact() && ((match(Op1, m_Power2()) && match(Op1, m_NonNegative())) || in visitSDiv()
H A DInstCombineShifts.cpp458 match(C, m_Power2())) { in commonShiftTransforms()
H A DInstCombineCompares.cpp2433 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
5630 if (match(LHS, m_Shl(m_Power2(C1), m_Value(X)))) { in foldICmpUsingKnownBits()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DPatternMatch.cpp537 EXPECT_TRUE(m_Power2().match(C128)); in TEST_F()
538 EXPECT_FALSE(m_Power2().match(CNeg128)); in TEST_F()
546 EXPECT_TRUE(m_Power2().match(CIntMin)); in TEST_F()
547 EXPECT_TRUE(m_Power2().match(CNegIntMin)); in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DPatternMatch.h544 inline cst_pred_ty<is_power2> m_Power2() { return cst_pred_ty<is_power2>(); } in m_Power2() function
545 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { return V; } in m_Power2() function
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueTracking.cpp2074 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
2086 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
2107 if (match(V, m_Power2())) in isKnownToBeAPowerOfTwo()
H A DInstructionSimplify.cpp3297 if (match(LHS, m_Shl(m_Power2(), m_Value())) && in simplifyICmpWithBinOp()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp884 if (match(W, m_Power2(RHS))) { in visitMulExpr()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp2328 m_CombineAnd(m_Value(BitMask), m_Power2()))) && in detectShiftUntilBitTestIdiom()