| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineNegator.cpp | 223 if (match(Sel->getTrueValue(), m_ImmConstant(TrueC)) && in visitImpl() 224 match(Sel->getFalseValue(), m_ImmConstant(FalseC))) { in visitImpl() 237 (I->hasOneUse() || match(I->getOperand(0), m_ImmConstant()))) { in visitImpl() 255 m_LShr(m_Value(X), m_ImmConstant(ShAmt)))), in visitImpl()
|
| H A D | InstCombineAddSub.cpp | 853 if (!match(Op1, m_ImmConstant(Op1C))) in foldAddWithConstant() 892 if (match(Op0, m_Or(m_Value(X), m_ImmConstant(Op01C))) && in foldAddWithConstant() 1350 if (match(&I, m_c_Add(m_Add(m_Value(A), m_ImmConstant(C1)), in visitAdd() 1351 m_Sub(m_ImmConstant(C2), m_Value(B)))) && in visitAdd() 1661 if (match(&I, m_c_FAdd(m_FMul(m_Value(X), m_ImmConstant(MulC)), in visitFAdd() 1837 if (match(Op0, m_ImmConstant(C))) { in visitSub() 1842 if (match(Op1, m_Add(m_Value(X), m_ImmConstant(C2)))) in visitSub() 1919 !match(Op0, m_Sub(m_ImmConstant(), m_Value()))) { in visitSub() 1965 if (match(Op1, m_Sub(m_ImmConstant(C2), m_Value(X)))) in visitSub() 2411 if (match(Op1, m_ImmConstant(C))) in visitFSub()
|
| H A D | InstCombineMulDivRem.cpp | 366 if (match(Op1, m_ImmConstant(ImmC))) { in visitMul() 800 if (match(Op0, m_ImmConstant()) && in commonIDivTransforms() 801 match(Op1, m_Select(m_Value(), m_ImmConstant(), m_ImmConstant()))) { in commonIDivTransforms() 1462 if (match(Op0, m_ImmConstant()) && in commonIRemTransforms() 1463 match(Op1, m_Select(m_Value(), m_ImmConstant(), m_ImmConstant()))) { in commonIRemTransforms()
|
| H A D | InstCombineAndOrXor.cpp | 1950 if (match(Op0, m_OneUse(m_LShr(m_Shl(m_ImmConstant(C1), m_Value(X)), in visitAnd() 1951 m_ImmConstant(C2)))) && in visitAnd() 1966 if (match(Op0, m_OneUse(m_Shl(m_LShr(m_ImmConstant(C1), m_Value(X)), in visitAnd() 1967 m_ImmConstant(C2)))) && in visitAnd() 3531 if (match(NotVal, m_c_Add(m_Value(X), m_ImmConstant(C)))) in foldNot() 3664 if (match(Op0, m_OneUse(m_Or(m_Value(X), m_ImmConstant(C2)))) && in visitXor() 3665 match(C1, m_ImmConstant())) { in visitXor() 3857 m_ImmConstant(C1))), in visitXor()
|
| H A D | InstCombineCalls.cpp | 982 if (!match(LHS->getArgOperand(1), m_ImmConstant(C0)) || in reassociateMinMaxWithConstants() 983 !match(II->getArgOperand(1), m_ImmConstant(C1))) in reassociateMinMaxWithConstants() 1007 m_MaxOrMin(m_Value(X), m_ImmConstant(C)))), in reassociateMinMaxWithConstantInOperand() 1015 match(X, m_ImmConstant()) || match(Y, m_ImmConstant())) in reassociateMinMaxWithConstantInOperand() 1418 if (match(I1, m_ImmConstant())) in visitCallInst() 1542 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC))) { in visitCallInst()
|
| H A D | InstructionCombining.cpp | 985 if (!match(BO0, m_SExt(m_Value(X))) || !match(BO1, m_ImmConstant(C)) || in foldBinopOfSextBoolToSelect() 1180 if (!isa<FreezeInst>(I) && match(InVal, m_ImmConstant())) in foldOpIntoPhi() 1328 if (match(Phi0->getIncomingValue(0), m_ImmConstant(C0))) { in foldBinopWithPhiOperands() 1331 } else if (match(Phi0->getIncomingValue(1), m_ImmConstant(C0))) { in foldBinopWithPhiOperands() 1337 if (!match(Phi1->getIncomingValueForBlock(ConstBB), m_ImmConstant(C1))) in foldBinopWithPhiOperands() 1759 m_ImmConstant(C))) && in foldVectorBinop()
|
| H A D | InstCombineSimplifyDemanded.cpp | 574 match(I->getOperand(0), m_LShr(m_ImmConstant(C), m_Value(X)))) { in SimplifyDemandedUseBits() 653 if (match(I->getOperand(0), m_Shl(m_ImmConstant(C), m_Value(X)))) { in SimplifyDemandedUseBits()
|
| H A D | InstCombineSelect.cpp | 1193 if (match(CmpRHS, m_ImmConstant()) && !match(CmpLHS, m_ImmConstant())) in foldSelectValueEquivalence() 1413 if (!match(ReplacementLow, m_ImmConstant(LowC)) || in canonicalizeClampLike() 1414 !match(ReplacementHigh, m_ImmConstant(HighC))) in canonicalizeClampLike()
|
| H A D | InstCombineCompares.cpp | 2691 if (Cmp.isEquality() && match(X, m_ImmConstant(SubC))) { in foldICmpSubConstant() 4099 m_ImmConstant(C)))) && in foldICmpBinOp() 4106 m_ImmConstant(C)))) && in foldICmpBinOp() 4296 if (match(B, m_ImmConstant(Cst1)) && match(D, m_ImmConstant(Cst2)) && in foldICmpBinOp()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 251 if (match(V, m_Add(PatternMatch::m_Value(), PatternMatch::m_ImmConstant()))) in isFreeToInvert() 256 if (match(V, m_Sub(PatternMatch::m_ImmConstant(), PatternMatch::m_Value()))) in isFreeToInvert()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 751 m_ImmConstant() { in m_ImmConstant() function 758 m_ImmConstant(Constant *&C) { in m_ImmConstant() function
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 3259 m_CombineOr(m_Select(m_Value(), m_ImmConstant(), m_Value()), in FoldTwoEntryPHINode() 3260 m_Select(m_Value(), m_Value(), m_ImmConstant())))); in FoldTwoEntryPHINode()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | sub.ll | 861 ; uses m_ImmConstant which matches Constant but (explicitly) not ConstantExpr.
|