Home
last modified time | relevance | path

Searched refs:m_Constant (Results 1 – 19 of 19) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp199 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul()
200 m_Constant(C1))) && in visitMul()
214 if (match(&I, m_Mul(m_Value(NewOp), m_Constant(C1)))) { in visitMul()
268 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
280 if (match(Op0, m_Neg(m_Value(X))) && match(Op1, m_Constant(Op1C))) in visitMul()
423 if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_Constant(C))) in visitFMul()
437 if (match(Op1, m_Constant(C)) && C->isFiniteNonZeroFP()) { in visitFMul()
439 if (match(Op0, m_OneUse(m_FDiv(m_Constant(C1), m_Value(X))))) { in visitFMul()
445 if (match(Op0, m_FDiv(m_Value(X), m_Constant(C1)))) { in visitFMul()
461 if (match(Op0, m_OneUse(m_FAdd(m_Value(X), m_Constant(C1))))) { in visitFMul()
[all …]
DInstCombineAddSub.cpp831 if (!match(Op1, m_Constant(Op1C))) in foldNoWrapAdd()
849 if (match(Op0, m_OneUse(m_SExt(m_NSWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
856 if (match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
869 if (!match(Op1, m_Constant(Op1C))) in foldAddWithConstant()
879 if (match(Op0, m_Sub(m_Constant(Op00C), m_Value(X)))) in foldAddWithConstant()
1142 m_ZExtOrSelf(m_Sub(m_Constant(C), m_ZExtOrSelf(m_Value(NBits))))) || in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1186 m_Shl(m_Constant(SignExtendingValueBaseConstant), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1771 if (match(Op1, m_Sub(m_Constant(C2), m_Value(X)))) in visitSub()
1775 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub()
1904 if (match(Op0, m_OneUse(m_And(m_Specific(Op1), m_Constant(C))))) { in visitSub()
[all …]
DInstCombineVectorOps.cpp918 match(InsElt2.getOperand(1), m_Constant(ScalarC)) && in hoistInsEltConst()
940 if (!match(Shuf->getOperand(1), m_Constant(ShufConstVec)) || in foldConstantInsEltIntoShuffle()
941 !match(InsElt.getOperand(1), m_Constant(InsEltScalar)) || in foldConstantInsEltIntoShuffle()
990 !match(InsElt.getOperand(1), m_Constant(Val[0])) || in foldConstantInsEltIntoShuffle()
992 !match(IEI->getOperand(1), m_Constant(Val[1]))) in foldConstantInsEltIntoShuffle()
1436 if (match(BO1, m_Constant(C))) { in getAlternateBinop()
1463 if (match(Op0, m_BinOp(m_Specific(Op1), m_Constant(C)))) in foldSelectShuffleWith1Binop()
1465 else if (match(Op1, m_BinOp(m_Specific(Op0), m_Constant(C)))) in foldSelectShuffleWith1Binop()
1571 if (match(B0, m_BinOp(m_Value(X), m_Constant(C0))) && in foldSelectShuffle()
1572 match(B1, m_BinOp(m_Value(Y), m_Constant(C1)))) in foldSelectShuffle()
[all …]
DInstCombineShifts.cpp396 if (match(Op0, m_Constant()) && match(Op1, m_Add(m_Value(A), m_Constant(C)))) in commonShiftTransforms()
1020 if (match(Op1, m_Constant(C1))) { in visitShl()
1024 if (match(Op0, m_OneUse(m_Shl(m_Constant(C2), m_Value(X))))) in visitShl()
1028 if (match(Op0, m_Mul(m_Value(X), m_Constant(C2)))) in visitShl()
1197 m_ZExtOrSelf(m_Sub(m_Constant(C1), in foldVariableSignZeroExtensionOfVariableHighBitExtract()
1199 m_ZExtOrSelf(m_Sub(m_Constant(C2), in foldVariableSignZeroExtensionOfVariableHighBitExtract()
1218 m_Sub(m_Constant(C0), m_ZExtOrSelf(m_Specific(NBits))))) || in foldVariableSignZeroExtensionOfVariableHighBitExtract()
DInstCombineAndOrXor.cpp1689 if (!match(Op0, m_OneUse(m_Add(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1690 !match(Op0, m_OneUse(m_Mul(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1691 !match(Op0, m_OneUse(m_LShr(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1692 !match(Op0, m_OneUse(m_Shl(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1693 !match(Op0, m_OneUse(m_Sub(m_Constant(C), m_Specific(Op1))))) in narrowMaskedBinOp()
2130 if (match(A, m_Constant(AConst)) && match(B, m_Constant(BConst))) in getSelectCondition()
2154 if (match(A, (m_Xor(m_SExt(m_Value(Cond)), m_Constant(AConst)))) && in getSelectCondition()
2155 match(B, (m_Xor(m_SExt(m_Specific(Cond)), m_Constant(BConst)))) && in getSelectCondition()
2926 if (D->hasOneUse() && match(M, m_Constant(C))) { in visitMaskedMerge()
3060 if (match(NotVal, m_AShr(m_Constant(C), m_Value(Y))) && in visitXor()
[all …]
DInstructionCombining.cpp290 if (!match(BinOp1->getOperand(1), m_Constant(C1)) || in simplifyAssocCastAssoc()
291 !match(BinOp2->getOperand(1), m_Constant(C2))) in simplifyAssocCastAssoc()
451 match(Op0, m_OneUse(m_BinOp(m_Value(A), m_Constant(C1)))) && in SimplifyAssociativeOrCommutative()
452 match(Op1, m_OneUse(m_BinOp(m_Value(B), m_Constant(C2))))) { in SimplifyAssociativeOrCommutative()
544 if (match(Op, m_Shl(m_Value(), m_Constant(C)))) { in getBinOpsForFactorization()
1448 if (match(LHS, m_ShuffleVector(m_Value(L0), m_Value(L1), m_Constant(Mask))) && in foldVectorBinop()
1483 if (match(LHS, m_ShuffleVector(m_Value(V1), m_Undef(), m_Constant(Mask))) && in foldVectorBinop()
1494 match(LHS, m_ShuffleVector(m_Value(V1), m_Value(V2), m_Constant(Mask))) && in foldVectorBinop()
1522 m_OneUse(m_ShuffleVector(m_Value(V1), m_Undef(), m_Constant(Mask))), in foldVectorBinop()
1523 m_Constant(C))) && in foldVectorBinop()
[all …]
DInstCombineSelect.cpp64 if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C)))) in foldSelectBinOpIdentity()
1204 m_CombineAnd(m_AnyIntegralConstant(), m_Constant(C0)))) in canonicalizeClampLike()
1247 m_CombineAnd(m_AnyIntegralConstant(), m_Constant(C1))))) in canonicalizeClampLike()
1258 m_CombineAnd(m_AnyIntegralConstant(), m_Constant(C2))))) in canonicalizeClampLike()
1337 m_CombineAnd(m_AnyIntegralConstant(), m_Constant(C0)))))) in tryToReuseConstantFromSelectInComparison()
1873 if (!match(Sel.getTrueValue(), m_Constant(C)) && in foldSelectExtConst()
1874 !match(Sel.getFalseValue(), m_Constant(C))) in foldSelectExtConst()
1937 if (!CondVal->getType()->isVectorTy() || !match(CondVal, m_Constant(CondC))) in canonicalizeSelectToShuffle()
DInstCombineCasts.cpp600 if (match(BinOp0, m_Constant(C))) { in narrowBinOp()
606 if (match(BinOp1, m_Constant(C))) { in narrowBinOp()
827 !match(A, m_Shr(m_Value(), m_Constant()))) { in visitTrunc()
1210 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt()
1216 if (SrcI && match(SrcI, m_OneUse(m_Xor(m_Value(And), m_Constant(C)))) && in visitZExt()
2151 if (match(BO->getOperand(1), m_Constant(C))) { in foldBitCastBitwiseLogic()
DInstCombineCompares.cpp1371 if (match(Val, m_TruncOrSelf(m_Shr(m_Value(X), m_Constant(C))))) { in foldSignBitTest()
2797 m_ShuffleVector(m_Value(Vec), m_Undef(), m_Constant(Mask)))) { in foldICmpBitCast()
3327 if (!match(M, m_Constant())) // Can not do this fold with non-constant. in foldICmpWithLowBitMaskedVal()
3337 if (!match(M, m_Constant())) // Can not do this fold with non-constant. in foldICmpWithLowBitMaskedVal()
3347 if (!match(M, m_Constant())) // Can not do this fold with non-constant. in foldICmpWithLowBitMaskedVal()
3357 if (!match(M, m_Constant())) // Can not do this fold with non-constant. in foldICmpWithLowBitMaskedVal()
5411 if (match(LHS, m_ShuffleVector(m_Value(V1), m_Undef(), m_Constant(M))) && in foldVectorCmp()
6119 if (match(Op0, m_Instruction(LHSI)) && match(Op1, m_Constant(RHSC))) { in visitFCmpInst()
6155 if (match(Op1, m_Constant(C))) { in visitFCmpInst()
DInstCombineCalls.cpp1956 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst()
2067 if (match(Arg1, m_Constant(C)) && C->isNotMinSignedValue()) { in visitCallInst()
2116 if (IID == Intrinsic::ssub_sat && match(Arg1, m_Constant(C)) && in visitCallInst()
2321 m_Select(m_Value(Cond), m_Constant(LHS), m_Constant(RHS)))) { in visitCallInst()
3413 m_Constant(XorMask))) && in visitCallInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DReassociate.cpp1961 if (match(I->getOperand(0), m_Constant())) in getNegatibleInsts()
1973 if (match(I->getOperand(0), m_Constant()) && in getNegatibleInsts()
1974 match(I->getOperand(1), m_Constant())) in getNegatibleInsts()
2017 assert(!match(Negatible->getOperand(1), m_Constant()) && in canonicalizeNegFPConstantsForOp()
2024 assert(!match(Negatible->getOperand(0), m_Constant()) && in canonicalizeNegFPConstantsForOp()
DCallSiteSplitting.cpp140 if (!match(Cond, m_ICmp(Pred, m_Value(), m_Constant()))) in recordCondition()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DVectorUtils.cpp301 if (match(V, m_Add(m_Value(Val), m_Constant(C)))) in findScalarElement()
346 if (match(V, m_ShuffleVector(m_Value(), m_Value(), m_Constant(Mask)))) in isSplatValue()
DValueTracking.cpp5166 if (match(CmpI->getOperand(1), m_Constant(CmpConst)) && in lookThroughCast()
DInstructionSimplify.cpp4470 if (match(Op0, m_InsertElement(m_Value(), m_Constant(C), in SimplifyShuffleVectorInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVETailPredication.cpp251 m_Constant(Const)))) in isTailPredicate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DPatternMatch.h90 inline class_match<Constant> m_Constant() { return class_match<Constant>(); } in m_Constant() function
591 inline bind_ty<Constant> m_Constant(Constant *&C) { return C; } in m_Constant() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp3626 match(ZextLoad, m_Shl(m_Value(), m_Constant()))) in isLoadCombineReductionCandidate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp8986 if (!match(Op1, m_ShuffleVector(m_Value(S1Op1), m_Undef(), m_Constant(M1))) || in areExtractShuffleVectors()
8987 !match(Op2, m_ShuffleVector(m_Value(S2Op1), m_Undef(), m_Constant(M2)))) in areExtractShuffleVectors()