| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 138 if (!match(Cmp->getOperand(1), m_Zero())) in foldSelectICmpAnd() 727 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndBinOp() 897 if (match(TrueVal, m_Zero())) { in canonicalizeSaturatedSubtract() 902 if (!match(FalseVal, m_Zero())) in canonicalizeSaturatedSubtract() 1749 match(CmpRHS, m_Zero())) { in foldSelectInstWithICmp() 2036 match(TrueVal, m_Zero())) in foldOverflowingAddSubSelect() 2998 if (match(FalseVal, m_Zero())) { in foldSelectOfBools() 3134 match(FalseVal, m_Zero())) { in foldSelectOfBools() 3140 match(FalseVal, m_Zero())) { in foldSelectOfBools() 3765 if (match(FalseVal, m_Zero()) && in visitSelectInst() [all …]
|
| H A D | InstCombineMulDivRem.cpp | 825 I.hasNoSignedZeros() && match(Start, m_Zero())) in visitFMul() 854 if (match(SI->getTrueValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp() 857 else if (match(SI->getFalseValue(), m_Zero())) in simplifyDivRemOfSelectWithZeroOp() 1517 match(Op0, m_NSWSub(m_Zero(), m_Value(X)))) { in visitSDiv() 1527 if (match(&I, m_SDiv(m_OneUse(m_NSWSub(m_Zero(), m_Value(X))), m_Value(Y)))) in visitSDiv() 1601 if (I.hasNoNaNs() && match(I.getOperand(1), m_Zero())) { in foldFDivConstantDivisor() 2096 if (match(&I, m_SRem(m_OneUse(m_NSWSub(m_Zero(), m_Value(X))), m_Value(Y)))) in visitSRem()
|
| H A D | InstCombineCompares.cpp | 1158 m_CombineAnd(m_Zero(), m_Value(Zero))))) in foldIRemByPowerOfTwoToBitTest() 1203 if (!match(Cmp.getOperand(1), m_Zero())) in foldICmpWithZero() 3189 match(Op1, m_Zero())) in foldICmpBitCast() 3206 if (Cmp.isEquality() && match(Op1, m_Zero())) in foldICmpBitCast() 4201 if (!I.isEquality() || !match(I.getOperand(1), m_Zero()) || in foldShiftIntoShiftInAnotherHandOfAndInICmp() 5070 if (match(Val, m_Zero())) in foldICmpWithMinMax() 5475 m_Zero()))) in foldICmpEquality() 5721 return match(RHS, m_Zero()); in isNeutralValue() 6579 if (match(B, m_Zero())) { in canonicalizeICmpBool() 6800 match(I.getOperand(1), m_Zero()) && in foldICmpInvariantGroup() [all …]
|
| H A D | InstCombineCalls.cpp | 512 if (match(Op1, m_Zero())) in foldCttzCtlz() 2844 if (match(IIOperand, m_ICmp(Pred, m_Instruction(LHS), m_Zero())) && in visitCallInst() 2884 match(IIOperand, m_Cmp(Pred, m_Value(A), m_Zero())) && in visitCallInst() 2906 m_Zero())) && in visitCallInst() 2972 if (match(IIOperand, m_CombineOr(m_Zero(), m_Undef()))) { in visitCallInst()
|
| H A D | InstCombineAndOrXor.cpp | 715 if (!match(LHS->getOperand(1), m_Zero()) || in foldAndOrOfICmpsOfAndWithPow2() 716 !match(RHS->getOperand(1), m_Zero())) in foldAndOrOfICmpsOfAndWithPow2() 819 if (match(ICmp, m_ICmp(Pred, m_And(m_Value(X), m_APInt(Mask)), m_Zero())) && in foldSignedTruncationCheck() 1030 if (!match(ZeroICmp, m_ICmp(EqPred, m_Value(ZeroCmpOp), m_Zero())) || in foldUnsignedUnderflowCheck() 2971 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks() 2972 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
|
| H A D | InstCombinePHI.cpp | 1475 !CmpInst->isEquality() || !match(CmpInst->getOperand(1), m_Zero())) { in visitPHINode()
|
| H A D | InstCombineSimplifyDemanded.cpp | 956 !match(I->getOperand(1), m_Zero())) in SimplifyDemandedUseBits()
|
| H A D | InstructionCombining.cpp | 2438 if (!isa<Constant>(*I) || !match(I->get(), m_Zero())) { in visitGetElementPtrInst() 3003 m_Zero()), in tryToMoveFreeBeforeNullTest()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | OverflowInstAnalysis.cpp | 28 if (!match(Op0, m_ICmp(Pred, m_Value(X), m_Zero()))) in isCheckForZeroAndMulWithOverflow()
|
| H A D | InstructionSimplify.cpp | 648 if (match(Op1, m_Zero())) in simplifyAddInst() 802 if (match(Op1, m_Zero())) in simplifySubInst() 810 if (match(Op0, m_Zero())) { in simplifySubInst() 1093 if (match(Op1, m_Zero())) in simplifyDivRem() 1121 if (match(Op0, m_Zero())) in simplifyDivRem() 1341 if (match(Op0, m_Zero())) in simplifyShift() 2079 if (match(Op1, m_Zero())) in simplifyAndInst() 2536 if (match(Op1, m_Zero())) in simplifyXorInst() 2972 if (!match(RHS, m_Zero())) in simplifyICmpWithZero() 6536 if (match(Op0, m_Zero()) || match(Op1, m_Zero())) in simplifyBinaryIntrinsic() [all …]
|
| H A D | AssumptionCache.cpp | 114 if (match(A, m_And(m_Value(X), m_Power2())) && match(B, m_Zero())) in findAffectedValues()
|
| H A D | ValueTracking.cpp | 257 return match(U, m_ICmp(P, m_Value(), m_Zero())) && ICmpInst::isEquality(P); in isOnlyUsedInZeroEqualityComparison() 547 return match(RHS, m_Zero()); in cmpExcludesZero() 624 if (LHS == V && match(RHS, m_Zero())) { in computeKnownBitsFromCmp() 692 if (match(LHS, m_And(m_V, m_Power2(BPow2))) && match(RHS, m_Zero())) in computeKnownBitsFromCmp()
|
| H A D | LoopAccessAnalysis.cpp | 2741 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerConstantIntrinsics.cpp | 75 if (match(BI->getOperand(0), m_Zero())) { in replaceConditionalBranchesOnConstant()
|
| H A D | LoopIdiomRecognize.cpp | 2236 return ICmpInst::isEquality(Pred) && match(CmpRHS, m_Zero()) && in detectShiftUntilBitTestIdiom() 2245 return ICmpInst::isEquality(Pred) && match(CmpRHS, m_Zero()) && in detectShiftUntilBitTestIdiom() 2589 m_ICmp(Pred, m_Instruction(ValShifted), m_Zero())) || in detectShiftUntilZeroIdiom()
|
| H A D | ConstraintElimination.cpp | 619 if (match(Op1, m_Zero())) { in getConstraint() 627 if (match(Op1, m_Zero())) { in getConstraint()
|
| H A D | SimpleLoopUnswitch.cpp | 178 while (match(Cond, m_Select(m_Value(CondNext), m_One(), m_Zero()))) in skipTrivialSelect() 2986 if (Pred == ICmpInst::ICMP_SGE && match(RHS, m_Zero())) { in canonicalizeForInvariantConditionInjection()
|
| H A D | DeadStoreElimination.cpp | 1894 if (!match(TI, m_Br(m_ICmp(Pred, m_Specific(Ptr), m_Zero()), TrueBB, in tryFoldIntoCalloc()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 726 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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 736 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction() 744 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandMemCmp.cpp | 685 match(UI, m_ICmp(Pred, m_Specific(CI), m_Zero())); in getMemCmpOneBlock()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 435 if (!isa<UndefValue>(PassThru) && !match(PassThru, m_Zero())) { in lowerGather()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 926 if (match(Src1, PatternMatch::m_Zero()) && in instCombineIntrinsic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 545 inline is_zero m_Zero() { return is_zero(); } in m_Zero() function 2638 m_Zero().match(GEP->getPointerOperand()) &&
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2951 if (match(CI->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks() 2967 if (match(CI->getArgOperand(0), m_Zero())) in markAliveBlocks()
|