Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVETailPredication.cpp229 m_Zero()))) in isTailPredicate()
235 m_Zero()))) in isTailPredicate()
265 m_Zero()))) in isTailPredicate()
270 if (!match(Insert, m_InsertElement(m_Undef(), m_Instruction(IV), m_Zero()))) in isTailPredicate()
280 if (!match(OnEntry, m_Zero())) in isTailPredicate()
DMVEGatherScatterLowering.cpp203 if (!isa<UndefValue>(PassThru) && !match(PassThru, m_Zero())) { in lowerGather()
/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()
/external/llvm-project/llvm/unittests/IR/
DPatternMatch.cpp484 EXPECT_TRUE(m_Add(m_One(), m_Zero()).match(X)); in TEST_F()
485 EXPECT_FALSE(m_Add(m_Zero(), m_One()).match(X)); in TEST_F()
487 EXPECT_FALSE(m_Unless(m_Add(m_One(), m_Zero())).match(X)); in TEST_F()
488 EXPECT_TRUE(m_Unless(m_Add(m_Zero(), m_One())).match(X)); in TEST_F()
490 EXPECT_TRUE(m_c_Add(m_One(), m_Zero()).match(X)); in TEST_F()
491 EXPECT_TRUE(m_c_Add(m_Zero(), m_One()).match(X)); in TEST_F()
493 EXPECT_FALSE(m_Unless(m_c_Add(m_One(), m_Zero())).match(X)); in TEST_F()
494 EXPECT_FALSE(m_Unless(m_c_Add(m_Zero(), m_One())).match(X)); in TEST_F()
969 match(VI1, m_InsertElt(m_Undef(), m_ConstantInt(), m_Zero()))); in TEST_F()
971 match(VI1, m_InsertElt(m_Undef(), m_SpecificInt(1), m_Zero()))); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp140 if (!match(Cmp->getOperand(1), m_Zero())) in foldSelectICmpAnd()
506 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd()
604 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
620 (!IsEqualZero && !match(CmpRHS, m_Zero()))) in foldSelectICmpAndOr()
689 if (match(TrueVal, m_Zero())) { in canonicalizeSaturatedSubtract()
693 if (!match(FalseVal, m_Zero())) in canonicalizeSaturatedSubtract()
815 if (!ICI->isEquality() || !match(ICI->getOperand(1), m_Zero())) in foldSelectCtlzToCttz()
857 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
1018 if (match(LHS, m_Sub(m_Value(), m_Zero())) || in canonicalizeMinMaxWithConstant()
1019 match(RHS, m_Sub(m_Value(), m_Zero()))) in canonicalizeMinMaxWithConstant()
[all …]
DInstCombineMulDivRem.cpp585 if (match(SI->getTrueValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp()
588 else if (match(SI->getFalseValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp()
1101 match(Op0, m_NSWSub(m_Zero(), m_Value(X)))) { in visitSDiv()
1111 if (match(&I, m_SDiv(m_OneUse(m_NSWSub(m_Zero(), m_Value(X))), m_Value(Y)))) in visitSDiv()
1429 if (match(&I, m_SRem(m_OneUse(m_NSWSub(m_Zero(), m_Value(X))), m_Value(Y)))) in visitSRem()
DInstCombineAddSub.cpp1178 if (!match(Zero, m_Zero())) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1360 if (match(FV, m_Zero()) && match(TV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
1364 if (match(TV, m_Zero()) && match(FV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd()
1661 match(Result, m_Add(m_Instruction(I), m_Zero())) && in OptimizePointerDifference()
1974 if (match(Op0, m_Zero())) { in visitSub()
1987 if (match(Op1, m_Shl(m_Value(X), m_Value(Y))) && match(Op0, m_Zero())) in visitSub()
DInstCombineAndOrXor.cpp973 if (match(ICmp, m_ICmp(Pred, m_And(m_Value(X), m_APInt(Mask)), m_Zero())) && in foldSignedTruncationCheck()
1060 if (!match(ZeroICmp, m_ICmp(EqPred, m_Value(ZeroCmpOp), m_Zero())) || in foldUnsignedUnderflowCheck()
2099 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
2100 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
2829 (PredL == CmpInst::ICMP_SLT && match(LHS1, m_Zero()) && in foldXorOfICmps()
2830 PredR == CmpInst::ICMP_SLT && match(RHS1, m_Zero()))) { in foldXorOfICmps()
2837 PredR == CmpInst::ICMP_SLT && match(RHS1, m_Zero())) || in foldXorOfICmps()
2838 (PredL == CmpInst::ICMP_SLT && match(LHS1, m_Zero()) && in foldXorOfICmps()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp141 if (!match(Cmp->getOperand(1), m_Zero())) in foldSelectICmpAnd()
486 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd()
584 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
600 (!IsEqualZero && !match(CmpRHS, m_Zero()))) in foldSelectICmpAndOr()
701 if (match(TrueVal, m_Zero())) { in canonicalizeSaturatedSubtract()
705 if (!match(FalseVal, m_Zero())) in canonicalizeSaturatedSubtract()
829 if (!ICI->isEquality() || !match(ICI->getOperand(1), m_Zero())) in foldSelectCtlzToCttz()
871 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
1032 if (match(LHS, m_Sub(m_Value(), m_Zero())) || in canonicalizeMinMaxWithConstant()
1033 match(RHS, m_Sub(m_Value(), m_Zero()))) in canonicalizeMinMaxWithConstant()
[all …]
DInstCombineAndOrXor.cpp813 if (!match(LHS->getOperand(1), m_Zero()) || in foldAndOrOfICmpsOfAndWithPow2()
814 !match(RHS->getOperand(1), m_Zero())) in foldAndOrOfICmpsOfAndWithPow2()
913 if (match(ICmp, m_ICmp(Pred, m_And(m_Value(X), m_APInt(Mask)), m_Zero())) && in foldSignedTruncationCheck()
1000 if (!match(ZeroICmp, m_ICmp(EqPred, m_Value(ZeroCmpOp), m_Zero())) || in foldUnsignedUnderflowCheck()
2188 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
2189 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
2362 if (PredL == ICmpInst::ICMP_EQ && match(LHS1, m_Zero())) { in foldOrOfICmps()
2371 else if (PredR == ICmpInst::ICMP_EQ && match(RHS1, m_Zero())) { in foldOrOfICmps()
2412 if (PredL == ICmpInst::ICMP_NE && match(LHS1, m_Zero()) && in foldOrOfICmps()
2413 PredR == ICmpInst::ICMP_NE && match(RHS1, m_Zero()) && in foldOrOfICmps()
[all …]
DInstCombineMulDivRem.cpp614 if (match(SI->getTrueValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp()
617 else if (match(SI->getFalseValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp()
1145 match(Op0, m_NSWSub(m_Zero(), m_Value(X)))) { in visitSDiv()
1155 if (match(&I, m_SDiv(m_OneUse(m_NSWSub(m_Zero(), m_Value(X))), m_Value(Y)))) in visitSDiv()
1479 if (match(&I, m_SRem(m_OneUse(m_NSWSub(m_Zero(), m_Value(X))), m_Value(Y)))) in visitSRem()
/external/llvm-project/llvm/test/Transforms/InstSimplify/
Dshr-scalar-vector-consistency.ll5 ; If m_Zero() is able to match a vector undef, but not a scalar undef,
/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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInstructionSimplify.cpp188 if (match(FCmp, m_Zero())) in handleOtherCmpSelSimplifications()
198 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in handleOtherCmpSelSimplifications()
627 if (match(Op1, m_Zero())) in SimplifyAddInst()
748 if (match(Op1, m_Zero())) in SimplifySubInst()
756 if (match(Op0, m_Zero())) { in SimplifySubInst()
879 if (match(Op1, m_CombineOr(m_Undef(), m_Zero()))) in SimplifyMulInst()
943 if (match(Op1, m_Zero())) in simplifyDivRem()
965 if (match(Op0, m_Zero())) in simplifyDivRem()
1242 if (match(Op0, m_Zero())) in SimplifyShift()
1249 if (match(Op1, m_Zero()) || in SimplifyShift()
[all …]
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVCanonicalization.cpp156 if (matchPattern(operand2(), m_Zero())) in fold()
175 if (matchPattern(operand2(), m_Zero())) in fold()
/external/llvm-project/llvm/lib/Analysis/
DInstructionSimplify.cpp188 if (match(FCmp, m_Zero())) in handleOtherCmpSelSimplifications()
198 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in handleOtherCmpSelSimplifications()
619 if (match(Op1, m_Zero())) in SimplifyAddInst()
739 if (match(Op1, m_Zero())) in SimplifySubInst()
747 if (match(Op0, m_Zero())) { in SimplifySubInst()
870 if (Q.isUndefValue(Op1) || match(Op1, m_Zero())) in SimplifyMulInst()
935 if (match(Op1, m_Zero())) in simplifyDivRem()
958 if (match(Op0, m_Zero())) in simplifyDivRem()
1237 if (match(Op0, m_Zero())) in SimplifyShift()
1244 if (match(Op1, m_Zero()) || in SimplifyShift()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLowerConstantIntrinsics.cpp64 if (match(BI->getOperand(0), m_Zero())) { in replaceConditionalBranchesOnConstant()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLowerConstantIntrinsics.cpp66 if (match(BI->getOperand(0), m_Zero())) { in replaceConditionalBranchesOnConstant()
/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/
Dcanonicalize.cc116 if (matchPattern(if_op.condition(), m_Zero())) { in matchAndRewrite()
/external/llvm-project/mlir/include/mlir/IR/
DMatchers.h232 inline detail::constant_int_value_matcher<0> m_Zero() { in m_Zero() function
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantFold.cpp1054 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()
1064 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
1077 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
1086 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
1096 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/llvm-project/mlir/lib/Dialect/StandardOps/IR/
DOps.cpp244 if (matchPattern(rhs(), m_Zero())) in fold()
390 if (matchPattern(rhs(), m_Zero())) in fold()
938 } else if (matchPattern(condbr.getCondition(), m_Zero())) { in matchAndRewrite()
2511 if (matchPattern(rhs(), m_Zero())) in fold()
2528 if (matchPattern(rhs(), m_Zero())) in fold()
2659 if (matchPattern(condition, m_Zero())) in fold()
2978 if (matchPattern(rhs(), m_Zero())) in fold()
4335 if (matchPattern(rhs(), m_Zero())) in fold()
/external/llvm-project/llvm/lib/IR/
DConstantFold.cpp1156 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction()
1167 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction()
1180 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
1189 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
1199 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()

123