Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DPatternMatch.cpp484 match(VI1, m_InsertElement(m_Undef(), m_ConstantInt(), m_Zero()))); in TEST_F()
486 match(VI1, m_InsertElement(m_Undef(), m_SpecificInt(1), m_Zero()))); in TEST_F()
509 EXPECT_TRUE(match(SI1, m_ShuffleVector(m_Value(), m_Undef(), m_Zero()))); in TEST_F()
519 m_ShuffleVector(m_InsertElement(m_Undef(), m_SpecificInt(1), m_Zero()), in TEST_F()
520 m_Undef(), m_Zero()))); in TEST_F()
522 SI3, m_ShuffleVector(m_InsertElement(m_Undef(), m_Value(), m_Zero()), in TEST_F()
523 m_Undef(), m_Zero()))); in TEST_F()
525 SI4, m_ShuffleVector(m_InsertElement(m_Undef(), m_Value(), m_Zero()), in TEST_F()
526 m_Undef(), m_Zero()))); in TEST_F()
529 m_ShuffleVector(m_InsertElement(m_Undef(), m_SpecificInt(2), m_Zero()), in TEST_F()
[all …]
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp113 if (!match(Cmp->getOperand(1), m_Zero())) in foldSelectICmpAnd()
456 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd()
514 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
530 (!IsEqualZero && !match(CmpRHS, m_Zero()))) in foldSelectICmpAndOr()
603 if (match(TrueVal, m_Zero())) { in canonicalizeSaturatedSubtract()
607 if (!match(FalseVal, m_Zero())) in canonicalizeSaturatedSubtract()
659 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
955 match(CmpRHS, m_Zero())) { in foldSelectInstWithICmp()
958 } else if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, m_Zero())) { in foldSelectInstWithICmp()
1558 if (match(TrueVal, m_Zero())) { in visitSelectInst()
[all …]
DInstCombineAddSub.cpp1278 if (match(FV, m_Zero()) && match(TV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
1282 if (match(TV, m_Zero()) && match(FV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
1751 if (match(Op1, m_SDiv(m_Value(X), m_Constant(C))) && match(Op0, m_Zero()) && in visitSub()
1756 if (match(Op1, m_Shl(m_Value(X), m_Value(Y))) && match(Op0, m_Zero())) in visitSub()
DInstCombineAndOrXor.cpp1697 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
1698 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
2368 (PredL == CmpInst::ICMP_SLT && match(LHS1, m_Zero()) && in foldXorOfICmps()
2369 PredR == CmpInst::ICMP_SLT && match(RHS1, m_Zero()))) { in foldXorOfICmps()
2376 PredR == CmpInst::ICMP_SLT && match(RHS1, m_Zero())) || in foldXorOfICmps()
2377 (PredL == CmpInst::ICMP_SLT && match(LHS1, m_Zero()) && in foldXorOfICmps()
DInstCombineMulDivRem.cpp562 if (match(SI->getTrueValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp()
565 else if (match(SI->getFalseValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp()
1078 if (match(Op0, m_NSWSub(m_Zero(), m_Value(X)))) { in visitSDiv()
DInstCombineCompares.cpp1323 if (match(Cmp.getOperand(1), m_Zero()) && Pred == ICmpInst::ICMP_SGT) { in foldICmpWithZero()
3777 if (match(RHS, m_Zero())) in OptimizeOverflowCheck()
3792 if (match(RHS, m_Zero())) in OptimizeOverflowCheck()
3822 if (match(RHS, m_Zero())) in OptimizeOverflowCheck()
4544 if (match(B, m_Zero())) { in canonicalizeICmpBool()
4631 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) { in visitICmpInst()
4736 match(Op1, m_Zero())) in visitICmpInst()
4752 if (I.isEquality() && match(Op1, m_Zero())) in visitICmpInst()
4807 match(Op1, m_Zero()) && in visitICmpInst()
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInstructionSimplify.cpp456 if (match(FCmp, m_Zero())) in ThreadCmpOverSelect()
466 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in ThreadCmpOverSelect()
582 if (match(Op1, m_Zero())) in SimplifyAddInst()
724 if (match(Op1, m_Zero())) in SimplifySubInst()
732 if (match(Op0, m_Zero())) { in SimplifySubInst()
855 if (match(Op1, m_CombineOr(m_Undef(), m_Zero()))) in SimplifyMulInst()
917 if (match(Op1, m_Zero())) in simplifyDivRem()
939 if (match(Op0, m_Zero())) in simplifyDivRem()
1215 if (match(Op0, m_Zero())) in SimplifyShift()
1222 if (match(Op1, m_Zero()) || in SimplifyShift()
[all …]
DVectorUtils.cpp109 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand()
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantFold.cpp960 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()
970 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
983 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
992 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
1002 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp709 if (match(C, m_Zero())) in matchLeftShift()
746 } else if (match(ShouldSameV, m_Zero())) { in matchLeftShift()
800 if (match(CondV, m_ICmp(P, m_Value(C), m_Zero())) || in matchRightShift()
801 match(CondV, m_ICmp(P, m_Zero(), m_Value(C)))) { in matchRightShift()
/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()

12