Home
last modified time | relevance | path

Searched refs:m_Specific (Results 1 – 13 of 13) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp944 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
948 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
1383 if (match(Op0, m_Or(m_Not(m_Specific(Op1)), m_Value(A))) || in visitAnd()
1384 match(Op0, m_Or(m_Value(A), m_Not(m_Specific(Op1))))) in visitAnd()
1386 if (match(Op1, m_Or(m_Not(m_Specific(Op0)), m_Value(A))) || in visitAnd()
1387 match(Op1, m_Or(m_Value(A), m_Not(m_Specific(Op0))))) in visitAnd()
1392 if (match(Op1, m_Xor(m_Xor(m_Specific(B), m_Value(C)), m_Specific(A)))) in visitAnd()
1398 if (match(Op1, m_Xor(m_Specific(B), m_Specific(A)))) in visitAnd()
1404 match(Op1, m_Xor(m_Not(m_Specific(A)), m_Specific(B)))) in visitAnd()
1409 match(Op1, m_Or(m_Specific(A), m_Specific(B)))) in visitAnd()
[all …]
DInstCombineAddSub.cpp1229 if (match(FV, m_Zero()) && match(TV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
1233 if (match(TV, m_Zero()) && match(FV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
1278 (match(LHS, m_And(m_Specific(A), m_Specific(B))) || in visitAdd()
1279 match(LHS, m_And(m_Specific(B), m_Specific(A))))) in visitAdd()
1283 (match(RHS, m_And(m_Specific(A), m_Specific(B))) || in visitAdd()
1284 match(RHS, m_And(m_Specific(B), m_Specific(A))))) in visitAdd()
1292 (match(LHS, m_And(m_Specific(A), m_Specific(B))) || in visitAdd()
1293 match(LHS, m_And(m_Specific(B), m_Specific(A))))) { in visitAdd()
1301 (match(RHS, m_And(m_Specific(A), m_Specific(B))) || in visitAdd()
1302 match(RHS, m_And(m_Specific(B), m_Specific(A))))) { in visitAdd()
[all …]
DInstCombineSelect.cpp74 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) || in MatchSelectPattern()
75 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) { in MatchSelectPattern()
411 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr()
413 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr()
481 if (match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) || in foldSelectCttzCtlz()
482 match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) { in foldSelectCttzCtlz()
555 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
559 } else if (match(FalseVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
569 if (match(TrueVal, m_ZExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
573 } else if (match(FalseVal, m_ZExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
[all …]
DInstCombineShifts.cpp428 m_Specific(Op1)))) { in FoldShiftByConstant()
447 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant()
464 m_Specific(Op1)))) { in FoldShiftByConstant()
800 if (match(Op0, m_Shl(m_Value(X), m_Specific(Op1)))) { in visitAShr()
DInstCombineMulDivRem.cpp900 if ((isSigned && match(Z, m_SRem(m_Specific(X), m_Specific(Op1)))) || in commonIDivTransforms()
901 (!isSigned && match(Z, m_URem(m_Specific(X), m_Specific(Op1))))) in commonIDivTransforms()
DInstCombineCompares.cpp1387 match(LShr, m_LShr(m_Specific(X), m_Value(Y)))) { in visitICmpInstWithInstAndIntCst()
3617 match(Op1, m_OneUse(m_LShr(m_Value(B), m_Specific(Cst1))))) || in visitICmpInst()
3619 match(Op1, m_OneUse(m_AShr(m_Value(B), m_Specific(Cst1)))))) { in visitICmpInst()
3634 match(Op1, m_OneUse(m_Shl(m_Value(B), m_Specific(Cst1))))) { in visitICmpInst()
DInstructionCombining.cpp1539 m_PtrToInt(m_Specific(GEP.getOperand(0)))))) { in visitGetElementPtrInst()
1952 if (!match(TI, m_Br(m_ICmp(Pred, m_Specific(Op), m_Zero()), TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest()
DInstCombineCasts.cpp874 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp555 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst()
556 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst()
560 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyAddInst()
561 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyAddInst()
815 if (match(Op1, m_FSub(m_AnyZero(), m_Specific(Op0)))) in SimplifyFAddInst()
817 else if (match(Op0, m_FSub(m_AnyZero(), m_Specific(Op1)))) in SimplifyFAddInst()
922 if (match(Op0, m_Exact(m_IDiv(m_Value(X), m_Specific(Op1)))) || // (X / Y) * Y in SimplifyMulInst()
923 match(Op1, m_Exact(m_IDiv(m_Value(X), m_Specific(Op0))))) // Y * (X / Y) in SimplifyMulInst()
1050 if ((isSigned && match(Op0, m_SRem(m_Value(), m_Specific(Op1)))) || in SimplifyDiv()
1051 (!isSigned && match(Op0, m_URem(m_Value(), m_Specific(Op1))))) in SimplifyDiv()
[all …]
DValueTracking.cpp714 auto m_V = m_CombineOr(m_Specific(V), in computeKnownBitsFromAssume()
715 m_CombineOr(m_PtrToInt(m_Specific(V)), in computeKnownBitsFromAssume()
716 m_BitCast(m_Specific(V)))); in computeKnownBitsFromAssume()
1577 if (match(X, m_Neg(m_Specific(Y))) || match(Y, m_Neg(m_Specific(X)))) in isKnownToBeAPowerOfTwo()
1587 if (match(X, m_And(m_Specific(Y), m_Value())) || in isKnownToBeAPowerOfTwo()
1588 match(X, m_And(m_Value(), m_Specific(Y)))) in isKnownToBeAPowerOfTwo()
1591 if (match(Y, m_And(m_Specific(X), m_Value())) || in isKnownToBeAPowerOfTwo()
1592 match(Y, m_And(m_Value(), m_Specific(X)))) in isKnownToBeAPowerOfTwo()
DLazyValueInfo.cpp852 match(ICI->getOperand(0), m_Add(m_Specific(Val), in getValueFromFromCondition()
/external/llvm/lib/Transforms/Scalar/
DStructurizeCFG.cpp392 if (I->getParent() == Parent && match(I, m_Not(m_Specific(Condition)))) in invert()
/external/llvm/include/llvm/IR/
DPatternMatch.h322 inline specificval_ty m_Specific(const Value *V) { return V; } in m_Specific() function