Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp137 if (!match(Cmp->getOperand(1), m_Zero())) in foldSelectICmpAnd()
641 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
811 if (match(TrueVal, m_Zero())) { in canonicalizeSaturatedSubtract()
816 if (!match(FalseVal, m_Zero())) in canonicalizeSaturatedSubtract()
1696 match(CmpRHS, m_Zero())) { in foldSelectInstWithICmp()
1977 match(TrueVal, m_Zero())) in foldOverflowingAddSubSelect()
2892 if (match(FalseVal, m_Zero())) { in foldSelectOfBools()
3014 match(FalseVal, m_Zero())) { in foldSelectOfBools()
3020 match(FalseVal, m_Zero())) { in foldSelectOfBools()
3475 if (match(FalseVal, m_Zero()) && in visitSelectInst()
[all …]
H A DInstCombineMulDivRem.cpp765 I.hasNoSignedZeros() && match(Start, m_Zero())) in visitFMul()
780 if (match(SI->getTrueValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp()
783 else if (match(SI->getFalseValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp()
1391 match(Op0, m_NSWSub(m_Zero(), m_Value(X)))) { in visitSDiv()
1401 if (match(&I, m_SDiv(m_OneUse(m_NSWSub(m_Zero(), m_Value(X))), m_Value(Y)))) in visitSDiv()
1468 if (I.hasNoNaNs() && match(I.getOperand(1), m_Zero())) { in foldFDivConstantDivisor()
1827 if (match(&I, m_SRem(m_OneUse(m_NSWSub(m_Zero(), m_Value(X))), m_Value(Y)))) in visitSRem()
H A DInstCombineCompares.cpp1223 m_CombineAnd(m_Zero(), m_Value(Zero))))) in foldIRemByPowerOfTwoToBitTest()
1268 if (!match(Cmp.getOperand(1), m_Zero())) in foldICmpWithZero()
2944 match(Op1, m_Zero())) in foldICmpBitCast()
2961 if (Cmp.isEquality() && match(Op1, m_Zero())) in foldICmpBitCast()
3770 if (!I.isEquality() || !match(I.getOperand(1), m_Zero()) || in foldShiftIntoShiftInAnotherHandOfAndInICmp()
4998 return match(RHS, m_Zero()); in isNeutralValue()
5873 if (match(B, m_Zero())) { in canonicalizeICmpBool()
6094 match(I.getOperand(1), m_Zero()) && in foldICmpInvariantGroup()
6129 m_Zero()))) in foldReductionIdiom()
6173 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) { in visitICmpInst()
[all …]
H A DInstCombineAndOrXor.cpp726 if (!match(LHS->getOperand(1), m_Zero()) || in foldAndOrOfICmpsOfAndWithPow2()
727 !match(RHS->getOperand(1), m_Zero())) in foldAndOrOfICmpsOfAndWithPow2()
830 if (match(ICmp, m_ICmp(Pred, m_And(m_Value(X), m_APInt(Mask)), m_Zero())) && in foldSignedTruncationCheck()
939 if (!match(ZeroICmp, m_ICmp(EqPred, m_Value(ZeroCmpOp), m_Zero())) || in foldUnsignedUnderflowCheck()
2593 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
2594 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
2731 if (LPred != ICmpInst::ICMP_EQ || !match(LHS->getOperand(1), m_Zero()) || in foldAndOrOfICmpEqZeroAndICmp()
H A DInstCombineCalls.cpp528 if (match(Op1, m_Zero())) in foldCttzCtlz()
2377 if (match(IIOperand, m_ICmp(Pred, m_Instruction(LHS), m_Zero())) && in visitCallInst()
2395 match(IIOperand, m_Cmp(Pred, m_Value(A), m_Zero())) && in visitCallInst()
2417 m_Zero())) && in visitCallInst()
H A DInstructionCombining.cpp1417 if (match(Val, m_Zero()) || Scale == 1) { in Descale()
1593 if (match(Op, m_Zero())) { in Descale()
2335 if (!isa<Constant>(*I) || !match(I->get(), m_Zero())) { in visitGetElementPtrInst()
3008 m_Zero()), in tryToMoveFreeBeforeNullTest()
H A DInstCombinePHI.cpp1455 match(CmpInst->getOperand(1), m_Zero())) { in visitPHINode()
H A DInstCombineVectorOps.cpp2501 if (match(Op0, m_BitCast(m_InsertElt(m_Value(), m_Value(X), m_Zero()))) && in foldIdentityExtractShuffle()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DInstructionSimplify.cpp645 if (match(Op1, m_Zero())) in simplifyAddInst()
799 if (match(Op1, m_Zero())) in simplifySubInst()
807 if (match(Op0, m_Zero())) { in simplifySubInst()
1013 if (match(Op1, m_Zero())) in simplifyDivRem()
1041 if (match(Op0, m_Zero())) in simplifyDivRem()
1353 if (match(Op0, m_Zero())) in simplifyShift()
2081 if (match(Op1, m_Zero())) in simplifyAndInst()
2550 if (match(Op1, m_Zero())) in simplifyXorInst()
2970 if (!match(RHS, m_Zero())) in simplifyICmpWithZero()
6151 if (match(Op0, m_Zero()) || match(Op1, m_Zero())) in simplifyBinaryIntrinsic()
[all …]
H A DOverflowInstAnalysis.cpp28 if (!match(Op0, m_ICmp(Pred, m_Value(X), m_Zero()))) in isCheckForZeroAndMulWithOverflow()
H A DAssumptionCache.cpp120 if (match(A, m_And(m_Value(X), m_Value(Y))) && match(B, m_Zero())) { in findAffectedValues()
H A DVectorUtils.cpp158 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand()
H A DValueTracking.cpp293 return match(U, m_ICmp(P, m_Value(), m_Zero())) && ICmpInst::isEquality(P); in isOnlyUsedInZeroEqualityComparison()
589 return match(RHS, m_Zero()); in cmpExcludesZero()
940 if (match(Cmp, m_ICmp(Pred, m_c_And(m_V, m_Power2(BPow2)), m_Zero())) && in computeKnownBitsFromAssume()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLowerConstantIntrinsics.cpp74 if (match(BI->getOperand(0), m_Zero())) { in replaceConditionalBranchesOnConstant()
H A DConstraintElimination.cpp404 if (match(Op1, m_Zero())) { in getConstraint()
412 if (!match(Op1, m_Zero())) in getConstraint()
H A DLoopIdiomRecognize.cpp2319 return ICmpInst::isEquality(Pred) && match(CmpRHS, m_Zero()) && in detectShiftUntilBitTestIdiom()
2328 return ICmpInst::isEquality(Pred) && match(CmpRHS, m_Zero()) && in detectShiftUntilBitTestIdiom()
2654 m_ICmp(Pred, m_Instruction(ValShifted), m_Zero())) || in detectShiftUntilZeroIdiom()
H A DDeadStoreElimination.cpp1846 if (!match(TI, m_Br(m_ICmp(Pred, m_Specific(Ptr), m_Zero()), TrueBB, in tryFoldIntoCalloc()
H A DSimpleLoopUnswitch.cpp138 while (match(Cond, m_Select(m_Value(CondNext), m_One(), m_Zero()))) in skipTrivialSelect()
/openbsd/gnu/llvm/llvm/lib/IR/
H A DConstantFold.cpp932 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction()
943 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction()
956 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
965 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
975 if (match(C2, m_Zero())) in ConstantFoldBinaryInstruction()
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp726 if (match(C, m_Zero())) in matchLeftShift()
763 } else if (match(ShouldSameV, m_Zero())) { in matchLeftShift()
817 if (match(CondV, m_ICmp(P, m_Value(C), m_Zero())) || in matchRightShift()
818 match(CondV, m_ICmp(P, m_Zero(), m_Value(C)))) { in matchRightShift()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp784 if (match(Src1, PatternMatch::m_Zero()) && in instCombineIntrinsic()
/openbsd/gnu/llvm/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp435 if (!isa<UndefValue>(PassThru) && !match(PassThru, m_Zero())) { in lowerGather()
H A DARMTargetTransformInfo.cpp232 match(I->getOperand(3), m_Zero())) { in instCombineIntrinsic()
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DPatternMatch.h537 inline is_zero m_Zero() { return is_zero(); } in m_Zero() function
2491 m_Zero().match(GEP->getPointerOperand()) &&
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLocal.cpp2382 if (match(CI->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks()
2398 if (match(CI->getArgOperand(0), m_Zero())) in markAliveBlocks()

12