Lines Matching refs:CmpRHS
5767 Value *CmpLHS, Value *CmpRHS, in matchFastFloatClamp() argument
5776 if (CmpRHS == FalseVal) { in matchFastFloatClamp()
5786 if (CmpRHS != TrueVal || !match(CmpRHS, m_APFloat(FC1)) || !FC1->isFinite()) in matchFastFloatClamp()
5821 Value *CmpLHS, Value *CmpRHS, in matchClamp() argument
5824 if (CmpRHS != TrueVal) { in matchClamp()
5829 if (CmpRHS == TrueVal && match(CmpRHS, m_APInt(C1))) { in matchClamp()
5857 Value *CmpLHS, Value *CmpRHS, in matchMinMaxOfMinMax() argument
5880 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax()
5888 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax()
5896 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax()
5904 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax()
5920 if ((CmpLHS == A && CmpRHS == C) || (match(C, m_Not(m_Specific(CmpLHS))) && in matchMinMaxOfMinMax()
5921 match(A, m_Not(m_Specific(CmpRHS))))) in matchMinMaxOfMinMax()
5927 if ((CmpLHS == A && CmpRHS == D) || (match(D, m_Not(m_Specific(CmpLHS))) && in matchMinMaxOfMinMax()
5928 match(A, m_Not(m_Specific(CmpRHS))))) in matchMinMaxOfMinMax()
5934 if ((CmpLHS == B && CmpRHS == C) || (match(C, m_Not(m_Specific(CmpLHS))) && in matchMinMaxOfMinMax()
5935 match(B, m_Not(m_Specific(CmpRHS))))) in matchMinMaxOfMinMax()
5941 if ((CmpLHS == B && CmpRHS == D) || (match(D, m_Not(m_Specific(CmpLHS))) && in matchMinMaxOfMinMax()
5942 match(B, m_Not(m_Specific(CmpRHS))))) in matchMinMaxOfMinMax()
5966 Value *CmpLHS, Value *CmpRHS, in matchMinMax() argument
5974 SelectPatternResult SPR = matchClamp(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal); in matchMinMax()
5978 SPR = matchMinMaxOfMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, Depth); in matchMinMax()
5985 if (CmpLHS == getNotValue(TrueVal) && CmpRHS == getNotValue(FalseVal)) { in matchMinMax()
5997 if (CmpLHS == getNotValue(FalseVal) && CmpRHS == getNotValue(TrueVal)) { in matchMinMax()
6011 if (!match(CmpRHS, m_APInt(C1))) in matchMinMax()
6057 Value *CmpLHS, Value *CmpRHS, in matchSelectPattern() argument
6077 if (match(CmpRHS, m_AnyZeroFP())) in matchSelectPattern()
6078 CmpRHS = OutputZeroVal; in matchSelectPattern()
6083 RHS = CmpRHS; in matchSelectPattern()
6096 !isKnownNonZero(CmpRHS)) in matchSelectPattern()
6110 bool RHSSafe = isKnownNonNaN(CmpRHS, FMF); in matchSelectPattern()
6142 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
6143 std::swap(CmpLHS, CmpRHS); in matchSelectPattern()
6153 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
6192 if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, ZeroOrAllOnes)) in matchSelectPattern()
6196 if (Pred == ICmpInst::ICMP_SGE && match(CmpRHS, ZeroOrOne)) in matchSelectPattern()
6201 if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, ZeroOrOne)) in matchSelectPattern()
6214 if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, ZeroOrAllOnes)) in matchSelectPattern()
6219 if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, ZeroOrOne)) in matchSelectPattern()
6225 return matchMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS, Depth); in matchSelectPattern()
6232 !isKnownNonZero(CmpRHS))) in matchSelectPattern()
6235 return matchFastFloatClamp(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS); in matchSelectPattern()
6369 Value *CmpRHS = CmpI->getOperand(1); in matchDecomposedSelectPattern() local
6385 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, in matchDecomposedSelectPattern()
6394 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, in matchDecomposedSelectPattern()
6399 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, TrueVal, FalseVal, in matchDecomposedSelectPattern()