Home
last modified time | relevance | path

Searched refs:m_Zero (Results 1 – 20 of 20) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp319 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
377 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
565 match(CmpRHS, m_Zero())) { in visitSelectInstWithICmp()
568 } else if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, m_Zero())) { in visitSelectInstWithICmp()
776 if (!match(IC->getOperand(1), m_Zero())) in foldSelectICmpAnd()
928 if (match(TrueVal, m_Zero())) { in visitSelectInst()
933 if (match(FalseVal, m_Zero())) { in visitSelectInst()
966 if (match(TrueVal, m_One()) && match(FalseVal, m_Zero())) in visitSelectInst()
970 if (match(TrueVal, m_AllOnes()) && match(FalseVal, m_Zero())) in visitSelectInst()
974 if (match(TrueVal, m_Zero()) && match(FalseVal, m_One())) { in visitSelectInst()
[all …]
DInstCombineAddSub.cpp1197 if (match(FV, m_Zero()) && match(TV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
1201 if (match(TV, m_Zero()) && match(FV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
1619 if (match(Op1, m_SDiv(m_Value(X), m_Constant(C))) && match(Op0, m_Zero()) && in visitSub()
1624 if (match(Op1, m_Shl(m_Value(X), m_Value(Y))) && match(Op0, m_Zero())) in visitSub()
1682 if (I.getFastMathFlags().noSignedZeros() && match(Op0, m_Zero())) { in visitFSub()
DInstCombineCompares.cpp1858 if (ICI.isEquality() && LHSI->hasOneUse() && match(RHS, m_Zero())) { in visitICmpInstWithInstAndIntCst()
2610 if (match(RHS, m_Zero())) in OptimizeOverflowCheck()
2625 if (match(RHS, m_Zero())) in OptimizeOverflowCheck()
2654 if (match(RHS, m_Zero())) in OptimizeOverflowCheck()
3175 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) { in visitICmpInst()
3815 if (NoOp0WrapProblem && ICmpInst::isSigned(Pred) && match(Op1, m_Zero())) in visitICmpInst()
4093 match(Op1, m_Zero()) && in visitICmpInst()
DInstCombineAndOrXor.cpp1379 if (AndRHSMask == 1 && match(Op0LHS, m_Zero())) in visitAnd()
1384 if (Op0I->hasOneUse() && !match(Op0LHS, m_Zero())) { in visitAnd()
1603 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
1604 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
DInstructionCombining.cpp1004 if (match(Val, m_Zero()) || Scale == 1) { in Descale()
1182 if (match(Op, m_Zero())) { in Descale()
2048 if (!match(TI, m_Br(m_ICmp(Pred, m_Specific(Op), m_Zero()), TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest()
DInstCombinePHI.cpp919 match(CmpInst->getOperand(1), m_Zero())) { in visitPHINode()
DInstCombineMulDivRem.cpp1179 if (match(Op0, m_NSWSub(m_Zero(), m_Value(X)))) { in visitSDiv()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp435 if (match(FCmp, m_Zero())) in ThreadCmpOverSelect()
445 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in ThreadCmpOverSelect()
561 if (match(Op1, m_Zero())) in SimplifyAddInst()
627 if (match(Op1, m_Zero())) in SimplifySubInst()
750 if (match(Op1, m_Zero())) in SimplifyMulInst()
826 if (match(Op0, m_Zero())) in SimplifyDiv()
945 if (match(Op0, m_Zero())) in SimplifyRem()
949 if (match(Op1, m_Zero())) in SimplifyRem()
1040 if (match(Op0, m_Zero())) in SimplifyShift()
1044 if (match(Op1, m_Zero())) in SimplifyShift()
[all …]
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp428 if (match(FCmp, m_Zero())) in ThreadCmpOverSelect()
438 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in ThreadCmpOverSelect()
544 if (match(Op1, m_Zero())) in SimplifyAddInst()
675 if (match(Op1, m_Zero())) in SimplifySubInst()
683 if (isNUW && match(Op0, m_Zero())) in SimplifySubInst()
802 if (match(Op1, m_Zero()) && in SimplifyFAddInst()
834 if (match(Op1, m_Zero())) in SimplifyFSubInst()
900 if (match(Op1, m_Zero())) in SimplifyMulInst()
995 if (match(Op1, m_Zero())) in SimplifyDiv()
1003 if (match(Op0, m_Zero())) in SimplifyDiv()
[all …]
DVectorUtils.cpp107 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand()
DValueTracking.cpp3243 m_c_ICmp(Pred, m_Specific(V), m_Zero())) || in isKnownNonNullFromDominatingCondition()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp277 if (match(FV, m_Zero()) && match(TV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
281 if (match(TV, m_Zero()) && match(FV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
623 match(Op0, m_Zero())) in visitSub()
627 if (match(Op1, m_Shl(m_Value(X), m_Value(Y))) && match(Op0, m_Zero())) in visitSub()
DInstCombineMulDivRem.cpp528 if (match(Sub->getOperand(0), m_Zero()) && Sub->hasNoSignedWrap()) in visitSDiv()
DInstCombineSelect.cpp590 if (!match(IC->getOperand(1), m_Zero())) in foldSelectICmpAnd()
DInstCombineCasts.cpp970 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_Zero()) && in transformSExtICmp()
DInstCombineAndOrXor.cpp1099 if (Op0I->hasOneUse() && !match(Op0LHS, m_Zero())) { in visitAnd()
/external/llvm/lib/IR/
DConstantFold.cpp956 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()
966 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
979 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
988 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
998 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
/external/llvm/include/llvm/IR/
DPatternMatch.h137 inline match_zero m_Zero() { return match_zero(); } in m_Zero() function
157 return m_CombineOr(m_Zero(), m_NegZero()); in m_AnyZero()
/external/llvm/lib/Transforms/Utils/
DLocal.cpp1383 if (match(II->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks()
1400 if (match(II->getArgOperand(0), m_Zero())) in markAliveBlocks()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h88 inline match_zero m_Zero() { return match_zero(); } in m_Zero() function