Lines Matching refs:Pred1
80 CmpInst::Predicate ExpectedPred, Pred1, Pred2; in foldSelectWithBinaryOp() local
102 if (!match(Cond, m_c_BinOp(m_c_ICmp(Pred1, m_Specific(TrueVal), in foldSelectWithBinaryOp()
105 Pred1 != Pred2 || Pred1 != ExpectedPred) in foldSelectWithBinaryOp()
1520 ICmpInst::Predicate Pred0, Pred1; in simplifyAndOfICmpsWithSameOperands() local
1523 !match(Op1, m_ICmp(Pred1, m_Specific(A), m_Specific(B)))) in simplifyAndOfICmpsWithSameOperands()
1529 if (ICmpInst::isImpliedTrueByMatchingCmp(Pred0, Pred1)) in simplifyAndOfICmpsWithSameOperands()
1533 if ((Pred0 == ICmpInst::getInversePredicate(Pred1)) || in simplifyAndOfICmpsWithSameOperands()
1534 (Pred0 == ICmpInst::ICMP_EQ && ICmpInst::isFalseWhenEqual(Pred1)) || in simplifyAndOfICmpsWithSameOperands()
1535 (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT) || in simplifyAndOfICmpsWithSameOperands()
1536 (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_UGT)) in simplifyAndOfICmpsWithSameOperands()
1545 ICmpInst::Predicate Pred0, Pred1; in simplifyOrOfICmpsWithSameOperands() local
1548 !match(Op1, m_ICmp(Pred1, m_Specific(A), m_Specific(B)))) in simplifyOrOfICmpsWithSameOperands()
1554 if (ICmpInst::isImpliedTrueByMatchingCmp(Pred0, Pred1)) in simplifyOrOfICmpsWithSameOperands()
1559 if ((Pred0 == ICmpInst::getInversePredicate(Pred1)) || in simplifyOrOfICmpsWithSameOperands()
1560 (Pred0 == ICmpInst::ICMP_NE && ICmpInst::isTrueWhenEqual(Pred1)) || in simplifyOrOfICmpsWithSameOperands()
1561 (Pred0 == ICmpInst::ICMP_SLE && Pred1 == ICmpInst::ICMP_SGE) || in simplifyOrOfICmpsWithSameOperands()
1562 (Pred0 == ICmpInst::ICMP_ULE && Pred1 == ICmpInst::ICMP_UGE)) in simplifyOrOfICmpsWithSameOperands()
1648 ICmpInst::Predicate Pred0, Pred1; in simplifyAndOfICmpsWithAdd() local
1654 if (!match(Op1, m_ICmp(Pred1, m_Specific(V), m_Value()))) in simplifyAndOfICmpsWithAdd()
1668 if (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_SGT) in simplifyAndOfICmpsWithAdd()
1670 if (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT && isNSW) in simplifyAndOfICmpsWithAdd()
1674 if (Pred0 == ICmpInst::ICMP_ULE && Pred1 == ICmpInst::ICMP_SGT) in simplifyAndOfICmpsWithAdd()
1676 if (Pred0 == ICmpInst::ICMP_SLE && Pred1 == ICmpInst::ICMP_SGT && isNSW) in simplifyAndOfICmpsWithAdd()
1682 if (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_UGT) in simplifyAndOfICmpsWithAdd()
1685 if (Pred0 == ICmpInst::ICMP_ULE && Pred1 == ICmpInst::ICMP_UGT) in simplifyAndOfICmpsWithAdd()
1706 ICmpInst::Predicate Pred1; in simplifyAndOrOfICmpsWithLimitConst() local
1707 bool HasNotOp = match(Cmp1, m_c_ICmp(Pred1, m_Not(m_Specific(X)), m_Value())); in simplifyAndOrOfICmpsWithLimitConst()
1708 if (!HasNotOp && !match(Cmp1, m_c_ICmp(Pred1, m_Specific(X), m_Value()))) in simplifyAndOrOfICmpsWithLimitConst()
1710 if (ICmpInst::isEquality(Pred1)) in simplifyAndOrOfICmpsWithLimitConst()
1727 Pred1 = ICmpInst::getInversePredicate(Pred1); in simplifyAndOrOfICmpsWithLimitConst()
1732 if (ICmpInst::isSigned(Pred1)) { in simplifyAndOrOfICmpsWithLimitConst()
1733 Pred1 = ICmpInst::getUnsignedPredicate(Pred1); in simplifyAndOrOfICmpsWithLimitConst()
1740 if (Pred0 == ICmpInst::ICMP_NE && Pred1 == ICmpInst::ICMP_ULT) in simplifyAndOrOfICmpsWithLimitConst()
1746 if (Pred0 == ICmpInst::ICMP_NE && Pred1 == ICmpInst::ICMP_UGT) in simplifyAndOrOfICmpsWithLimitConst()
1784 ICmpInst::Predicate Pred0, Pred1; in simplifyOrOfICmpsWithAdd() local
1790 if (!match(Op1, m_ICmp(Pred1, m_Specific(V), m_Value()))) in simplifyOrOfICmpsWithAdd()
1804 if (Pred0 == ICmpInst::ICMP_UGE && Pred1 == ICmpInst::ICMP_SLE) in simplifyOrOfICmpsWithAdd()
1806 if (Pred0 == ICmpInst::ICMP_SGE && Pred1 == ICmpInst::ICMP_SLE && isNSW) in simplifyOrOfICmpsWithAdd()
1810 if (Pred0 == ICmpInst::ICMP_UGT && Pred1 == ICmpInst::ICMP_SLE) in simplifyOrOfICmpsWithAdd()
1812 if (Pred0 == ICmpInst::ICMP_SGT && Pred1 == ICmpInst::ICMP_SLE && isNSW) in simplifyOrOfICmpsWithAdd()
1818 if (Pred0 == ICmpInst::ICMP_UGE && Pred1 == ICmpInst::ICMP_ULE) in simplifyOrOfICmpsWithAdd()
1821 if (Pred0 == ICmpInst::ICMP_UGT && Pred1 == ICmpInst::ICMP_ULE) in simplifyOrOfICmpsWithAdd()