Home
last modified time | relevance | path

Searched refs:m_ICmp (Results 1 – 25 of 27) sorted by relevance

12

/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DOverflowInstAnalysis.cpp28 if (!match(Op0, m_ICmp(Pred, m_Value(X), m_Zero()))) in isCheckForZeroAndMulWithOverflow()
H A DAssumptionCache.cpp90 if (match(Cond, m_ICmp(Pred, m_Value(A), m_Value(B)))) { in findAffectedValues()
H A DInstructionSimplify.cpp110 m_ICmp(Pred2, m_Value(X), m_Value(Y)))) || in foldSelectWithBinaryOp()
1551 if (!match(ZeroICmp, m_ICmp(EqPred, m_Value(Y), m_Zero())) || in simplifyUnsignedRangeCheck()
1603 if (match(UnsignedICmp, m_ICmp(UnsignedPred, m_Value(X), m_Specific(Y))) && in simplifyUnsignedRangeCheck()
1607 m_ICmp(UnsignedPred, m_Specific(Y), m_Value(X))) && in simplifyUnsignedRangeCheck()
1736 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_APInt(C0)), m_APInt(C1)))) in simplifyAndOfICmpsWithAdd()
1739 if (!match(Op1, m_ICmp(Pred1, m_Specific(V), m_Value()))) in simplifyAndOfICmpsWithAdd()
1843 if (!match(Cmp0, m_ICmp(Pred0, m_Intrinsic<Intrinsic::ctpop>(m_Value(X)), in simplifyAndOrOfICmpsWithCtpop()
1845 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt())) || C->isZero()) in simplifyAndOrOfICmpsWithCtpop()
1893 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_APInt(C0)), m_APInt(C1)))) in simplifyOrOfICmpsWithAdd()
1896 if (!match(Op1, m_ICmp(Pred1, m_Specific(V), m_Value()))) in simplifyOrOfICmpsWithAdd()
[all …]
H A DValueTracking.cpp293 return match(U, m_ICmp(P, m_Value(), m_Zero())) && ICmpInst::isEquality(P); in isOnlyUsedInZeroEqualityComparison()
853 if (match(Cmp, m_ICmp(Pred, m_V, m_Value(A))) && in computeKnownBitsFromAssume()
866 if (match(Cmp, m_ICmp(Pred, m_V, m_Value(A))) && in computeKnownBitsFromAssume()
879 if (match(Cmp, m_ICmp(Pred, m_V, m_Value(A))) && in computeKnownBitsFromAssume()
892 if (match(Cmp, m_ICmp(Pred, m_V, m_Value(A))) && in computeKnownBitsFromAssume()
905 if (match(Cmp, m_ICmp(Pred, m_V, m_Value(A))) && in computeKnownBitsFromAssume()
916 if (match(Cmp, m_ICmp(Pred, m_V, m_Value(A))) && in computeKnownBitsFromAssume()
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 DLoopBoundSplit.cpp54 if (match(ICmp, m_ICmp(Cond.Pred, m_Value(Cond.AddRecValue), in analyzeICmp()
165 if (!match(BI, m_Br(m_ICmp(Pred, m_Value(LHS), m_Value(RHS)), in isProcessableCondBI()
H A DGuardWidening.cpp514 if (match(Cond0, m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in widenCondCommon()
515 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in widenCondCommon()
H A DCallSiteSplitting.cpp139 if (!match(Cond, m_ICmp(Pred, m_Value(), m_Constant()))) in recordCondition()
H A DEarlyCSE.cpp196 if (!match(Cond, m_ICmp(Pred, m_Specific(A), m_Specific(B)))) { in matchSelectWithOptionalNotCond()
200 if (!match(Cond, m_ICmp(Pred, m_Specific(B), m_Specific(A)))) in matchSelectWithOptionalNotCond()
H A DConstraintElimination.cpp1024 if (match(Cmp, m_ICmp(Pred, m_Value(A), m_Value(B)))) { in eliminateConstraints()
H A DLoopIdiomRecognize.cpp2310 m_Br(m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)), 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()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp228 if (match(ICmp, m_ICmp(Pred, GroupIDIntrin, m_Specific(BlockCount)))) { in processUse()
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp394 if (match(TI, m_ICmp(TPred, m_Value(), m_Value())) && in foldSelectOpOp()
395 match(FI, m_ICmp(FPred, m_Value(), m_Value()))) { in foldSelectOpOp()
766 if (!match(CondVal, m_ICmp(Predicate, m_Value(X), m_Zero())) || in foldSelectZeroOrMul()
1404 m_ICmp(Pred1, m_Specific(X), in canonicalizeClampLike()
1505 if (!match(&Cmp, m_OneUse(m_ICmp( in tryToReuseConstantFromSelectInComparison()
1600 if (!match(ICI, m_ICmp(Pred, m_Value(V), m_APInt(CmpC)))) in foldSelectInstWithICmpConst()
1915 if (!match(Limit, m_Select(m_ICmp(Pred, m_Value(Op), m_APInt(C)), in foldOverflowingAddSubSelect()
2303 if (!match(Cond, m_OneUse(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()))) || in foldSelectFunnelShift()
2345 if (!match(Cond, m_OneUse(m_ICmp(Pred, m_BitCast(m_Value(X)), m_APInt(C)))) || in foldSelectToCopysign()
2702 if (!match(Cond, m_ICmp(Pred, m_Value(XLowBits), m_ZeroInt())) || in foldRoundUpIntegerWithPow2Alignment()
H A DInstCombineAndOrXor.cpp886 if (!match(Cmp0, m_ICmp(Pred0, m_Intrinsic<Intrinsic::ctpop>(m_Value(X)), in foldIsPowerOf2OrZero()
888 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt()))) in foldIsPowerOf2OrZero()
913 if (JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
914 match(Cmp1, m_ICmp(Pred1, m_Intrinsic<Intrinsic::ctpop>(m_Specific(X)), in foldIsPowerOf2()
921 if (!JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
922 match(Cmp1, m_ICmp(Pred1, m_Intrinsic<Intrinsic::ctpop>(m_Specific(X)), in foldIsPowerOf2()
939 if (!match(ZeroICmp, m_ICmp(EqPred, m_Value(ZeroCmpOp), m_Zero())) || in foldUnsignedUnderflowCheck()
1102 if (!match(Cmp0, m_ICmp(Pred0, m_Value(X), m_Constant(C))) || in foldAndOrOfICmpsWithConstEq()
1147 if (!match(ICmp1, m_ICmp(Pred1, m_Value(V1), m_APInt(C1))) || in foldAndOrOfICmpsUsingRanges()
1148 !match(ICmp2, m_ICmp(Pred2, m_Value(V2), m_APInt(C2)))) in foldAndOrOfICmpsUsingRanges()
[all …]
H A DInstCombineCompares.cpp1222 if (!match(&I, m_ICmp(Pred, m_OneUse(m_IRem(m_Value(X), m_Value(Y))), in foldIRemByPowerOfTwoToBitTest()
1238 if (!I.isEquality() || !match(&I, m_ICmp(Pred, m_Instruction(Val), m_Zero()))) in foldSignBitTest()
1382 if (match(DomCond, m_ICmp(DomPred, m_Specific(X), m_APInt(DomC))) && in foldICmpWithDominatingICmp()
2827 if (!match(SI->getCondition(), m_ICmp(PredA, m_Value(LHS), m_Value(RHS))) || in matchThreeWayIntCompare()
2839 if (!match(UnequalVal, m_Select(m_ICmp(PredB, m_Value(LHS2), m_Value(RHS2)), in matchThreeWayIntCompare()
4662 match(A, m_ICmp(Pred2, m_Value(Y), m_AllOnes())) && in foldICmpEquality()
6126 if (!match(&I, m_ICmp(OuterPred, in foldReductionIdiom()
6128 m_ICmp(InnerPred, m_Value(LHS), m_Value(RHS))))), in foldReductionIdiom()
H A DInstCombineAddSub.cpp1147 m_SExt(m_ICmp(Pred, m_And(m_Specific(X), m_APInt(MaskC)), in foldAddToAshr()
1225 if (!match(Select, m_Select(m_ICmp(Pred, m_Specific(X), m_APInt(Thr)), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1529 m_OneUse(m_ICmp(Pred, m_Specific(A), m_ZeroInt()))))) && in visitAdd()
H A DInstCombineSimplifyDemanded.cpp364 if (!match(I->getOperand(0), m_ICmp(Pred, m_Value(X), m_APInt(CmpC))) || in SimplifyDemandedUseBits()
H A DInstCombineCalls.cpp2377 if (match(IIOperand, m_ICmp(Pred, m_Instruction(LHS), m_Zero())) && in visitCallInst()
H A DInstructionCombining.cpp3005 if (!match(TI, m_Br(m_ICmp(Pred, in tryToMoveFreeBeforeNullTest()
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp701 if (!match(CondV, m_ICmp(P, m_And(m_Value(A), m_Value(B)), m_Value(C))) && in matchLeftShift()
702 !match(CondV, m_ICmp(P, m_Value(C), m_And(m_Value(A), m_Value(B))))) 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()
824 } else if (match(CondV, m_ICmp(P, m_Value(C), m_One())) || in matchRightShift()
825 match(CondV, m_ICmp(P, m_One(), m_Value(C)))) { in matchRightShift()
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLoopPeel.cpp360 if (!match(Condition, m_ICmp(Pred, m_Value(LeftVal), m_Value(RightVal)))) in countToEliminateCompares()
H A DSimplifyIndVar.cpp1988 if (!match(Condition, m_ICmp(Pred, m_Specific(NarrowDefLHS), in calculatePostIncRange()
H A DScalarEvolutionExpander.cpp2059 m_Br(m_ICmp(Pred, m_Instruction(LHS), m_Instruction(RHS)), in getRelatedExistingExpansion()
/openbsd/gnu/llvm/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp130 if (!match(TermI, m_Br(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()), in foldGuardedFunnelShift()
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DPatternMatch.h1394 m_ICmp(ICmpInst::Predicate &Pred, const LHS &L, const RHS &R) { in m_ICmp() function
1964 if (!m_ICmp(Pred, m_Value(ICmpLHS), m_Value(ICmpRHS)).match(V)) in match()

12