Lines Matching refs:Pred1
85 CmpInst::Predicate ExpectedPred, Pred1, Pred2; in foldSelectWithBinaryOp() local
107 if (!match(Cond, m_c_BinOp(m_c_ICmp(Pred1, m_Specific(TrueVal), in foldSelectWithBinaryOp()
110 Pred1 != Pred2 || Pred1 != ExpectedPred) in foldSelectWithBinaryOp()
1588 ICmpInst::Predicate Pred0, Pred1; in simplifyAndOfICmpsWithSameOperands() local
1591 !match(Op1, m_ICmp(Pred1, m_Specific(A), m_Specific(B)))) in simplifyAndOfICmpsWithSameOperands()
1595 if ((Pred0 == ICmpInst::getInversePredicate(Pred1)) || in simplifyAndOfICmpsWithSameOperands()
1596 (Pred0 == ICmpInst::ICMP_EQ && ICmpInst::isFalseWhenEqual(Pred1)) || in simplifyAndOfICmpsWithSameOperands()
1597 (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT) || in simplifyAndOfICmpsWithSameOperands()
1598 (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_UGT)) in simplifyAndOfICmpsWithSameOperands()
1607 ICmpInst::Predicate Pred0, Pred1; in simplifyOrOfICmpsWithSameOperands() local
1610 !match(Op1, m_ICmp(Pred1, m_Specific(A), m_Specific(B)))) in simplifyOrOfICmpsWithSameOperands()
1615 if ((Pred0 == ICmpInst::getInversePredicate(Pred1)) || in simplifyOrOfICmpsWithSameOperands()
1616 (Pred0 == ICmpInst::ICMP_NE && ICmpInst::isTrueWhenEqual(Pred1)) || in simplifyOrOfICmpsWithSameOperands()
1617 (Pred0 == ICmpInst::ICMP_SLE && Pred1 == ICmpInst::ICMP_SGE) || in simplifyOrOfICmpsWithSameOperands()
1618 (Pred0 == ICmpInst::ICMP_ULE && Pred1 == ICmpInst::ICMP_UGE)) in simplifyOrOfICmpsWithSameOperands()
1704 ICmpInst::Predicate Pred0, Pred1; in simplifyAndOfICmpsWithAdd() local
1710 if (!match(Op1, m_ICmp(Pred1, m_Specific(V), m_Value()))) in simplifyAndOfICmpsWithAdd()
1724 if (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_SGT) in simplifyAndOfICmpsWithAdd()
1726 if (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT && isNSW) in simplifyAndOfICmpsWithAdd()
1730 if (Pred0 == ICmpInst::ICMP_ULE && Pred1 == ICmpInst::ICMP_SGT) in simplifyAndOfICmpsWithAdd()
1732 if (Pred0 == ICmpInst::ICMP_SLE && Pred1 == ICmpInst::ICMP_SGT && isNSW) in simplifyAndOfICmpsWithAdd()
1738 if (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_UGT) in simplifyAndOfICmpsWithAdd()
1741 if (Pred0 == ICmpInst::ICMP_ULE && Pred1 == ICmpInst::ICMP_UGT) in simplifyAndOfICmpsWithAdd()
1762 ICmpInst::Predicate Pred1; in simplifyAndOrOfICmpsWithLimitConst() local
1763 bool HasNotOp = match(Cmp1, m_c_ICmp(Pred1, m_Not(m_Specific(X)), m_Value())); in simplifyAndOrOfICmpsWithLimitConst()
1764 if (!HasNotOp && !match(Cmp1, m_c_ICmp(Pred1, m_Specific(X), m_Value()))) in simplifyAndOrOfICmpsWithLimitConst()
1766 if (ICmpInst::isEquality(Pred1)) in simplifyAndOrOfICmpsWithLimitConst()
1783 Pred1 = ICmpInst::getInversePredicate(Pred1); in simplifyAndOrOfICmpsWithLimitConst()
1788 if (ICmpInst::isSigned(Pred1)) { in simplifyAndOrOfICmpsWithLimitConst()
1789 Pred1 = ICmpInst::getUnsignedPredicate(Pred1); in simplifyAndOrOfICmpsWithLimitConst()
1796 if (Pred0 == ICmpInst::ICMP_NE && Pred1 == ICmpInst::ICMP_ULT) in simplifyAndOrOfICmpsWithLimitConst()
1802 if (Pred0 == ICmpInst::ICMP_NE && Pred1 == ICmpInst::ICMP_UGT) in simplifyAndOrOfICmpsWithLimitConst()
1811 ICmpInst::Predicate Pred0, Pred1; in simplifyAndOrOfICmpsWithCtpop() local
1816 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt())) || C->isZero()) in simplifyAndOrOfICmpsWithCtpop()
1820 if (!IsAnd && Pred0 == ICmpInst::ICMP_EQ && Pred1 == ICmpInst::ICMP_NE) in simplifyAndOrOfICmpsWithCtpop()
1823 if (IsAnd && Pred0 == ICmpInst::ICMP_NE && Pred1 == ICmpInst::ICMP_EQ) in simplifyAndOrOfICmpsWithCtpop()
1866 ICmpInst::Predicate Pred0, Pred1; in simplifyOrOfICmpsWithAdd() local
1872 if (!match(Op1, m_ICmp(Pred1, m_Specific(V), m_Value()))) in simplifyOrOfICmpsWithAdd()
1886 if (Pred0 == ICmpInst::ICMP_UGE && Pred1 == ICmpInst::ICMP_SLE) in simplifyOrOfICmpsWithAdd()
1888 if (Pred0 == ICmpInst::ICMP_SGE && Pred1 == ICmpInst::ICMP_SLE && isNSW) in simplifyOrOfICmpsWithAdd()
1892 if (Pred0 == ICmpInst::ICMP_UGT && Pred1 == ICmpInst::ICMP_SLE) in simplifyOrOfICmpsWithAdd()
1894 if (Pred0 == ICmpInst::ICMP_SGT && Pred1 == ICmpInst::ICMP_SLE && isNSW) in simplifyOrOfICmpsWithAdd()
1900 if (Pred0 == ICmpInst::ICMP_UGE && Pred1 == ICmpInst::ICMP_ULE) in simplifyOrOfICmpsWithAdd()
1903 if (Pred0 == ICmpInst::ICMP_UGT && Pred1 == ICmpInst::ICMP_ULE) in simplifyOrOfICmpsWithAdd()