Lines Matching refs:CmpLHS
4434 Value *CmpLHS, *CmpRHS; in computeKnownFPClass() local
4435 if (F && match(Cond, m_FCmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) { in computeKnownFPClass()
4441 bool LookThroughFAbsFNeg = CmpLHS != LHS && CmpLHS != RHS; in computeKnownFPClass()
4443 fcmpToClassTest(Pred, *F, CmpLHS, CmpRHS, LookThroughFAbsFNeg); in computeKnownFPClass()
7357 Value *CmpLHS, Value *CmpRHS, in matchFastFloatClamp() argument
7386 m_CombineOr(m_OrdFMin(m_Specific(CmpLHS), m_APFloat(FC2)), in matchFastFloatClamp()
7387 m_UnordFMin(m_Specific(CmpLHS), m_APFloat(FC2)))) && in matchFastFloatClamp()
7396 m_CombineOr(m_OrdFMax(m_Specific(CmpLHS), m_APFloat(FC2)), in matchFastFloatClamp()
7397 m_UnordFMax(m_Specific(CmpLHS), m_APFloat(FC2)))) && in matchFastFloatClamp()
7411 Value *CmpLHS, Value *CmpRHS, in matchClamp() argument
7422 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
7427 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
7432 if (match(FalseVal, m_UMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
7437 if (match(FalseVal, m_UMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
7447 Value *CmpLHS, Value *CmpRHS, in matchMinMaxOfMinMax() argument
7470 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax()
7478 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax()
7486 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax()
7494 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax()
7510 if ((CmpLHS == A && CmpRHS == C) || (match(C, m_Not(m_Specific(CmpLHS))) && in matchMinMaxOfMinMax()
7517 if ((CmpLHS == A && CmpRHS == D) || (match(D, m_Not(m_Specific(CmpLHS))) && in matchMinMaxOfMinMax()
7524 if ((CmpLHS == B && CmpRHS == C) || (match(C, m_Not(m_Specific(CmpLHS))) && in matchMinMaxOfMinMax()
7531 if ((CmpLHS == B && CmpRHS == D) || (match(D, m_Not(m_Specific(CmpLHS))) && in matchMinMaxOfMinMax()
7556 Value *CmpLHS, Value *CmpRHS, in matchMinMax() argument
7564 SelectPatternResult SPR = matchClamp(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal); in matchMinMax()
7568 SPR = matchMinMaxOfMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, Depth); in matchMinMax()
7575 if (CmpLHS == getNotValue(TrueVal) && CmpRHS == getNotValue(FalseVal)) { in matchMinMax()
7587 if (CmpLHS == getNotValue(FalseVal) && CmpRHS == getNotValue(TrueVal)) { in matchMinMax()
7606 if ((CmpLHS == TrueVal && match(FalseVal, m_APInt(C2))) || in matchMinMax()
7607 (CmpLHS == FalseVal && match(TrueVal, m_APInt(C2)))) { in matchMinMax()
7612 return {CmpLHS == TrueVal ? SPF_UMAX : SPF_UMIN, SPNB_NA, false}; in matchMinMax()
7618 return {CmpLHS == FalseVal ? SPF_UMAX : SPF_UMIN, SPNB_NA, false}; in matchMinMax()
7647 Value *CmpLHS, Value *CmpRHS, in matchSelectPattern() argument
7666 if (match(CmpLHS, m_AnyZeroFP()) && CmpLHS != OutputZeroVal) { in matchSelectPattern()
7668 CmpLHS = OutputZeroVal; in matchSelectPattern()
7677 LHS = CmpLHS; in matchSelectPattern()
7694 if (!FMF.noSignedZeros() && !isKnownNonZero(CmpLHS) && in matchSelectPattern()
7708 bool LHSSafe = isKnownNonNaN(CmpLHS, FMF); in matchSelectPattern()
7741 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
7742 std::swap(CmpLHS, CmpRHS); in matchSelectPattern()
7752 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
7778 m_CombineOr(m_Specific(CmpLHS), m_SExt(m_Specific(CmpLHS))); in matchSelectPattern()
7786 if (match(CmpLHS, m_Neg(m_Specific(FalseVal)))) in matchSelectPattern()
7808 if (match(CmpLHS, m_Neg(m_Specific(TrueVal)))) in matchSelectPattern()
7824 return matchMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS, Depth); in matchSelectPattern()
7830 (!FMF.noSignedZeros() && !isKnownNonZero(CmpLHS) && in matchSelectPattern()
7834 return matchFastFloatClamp(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS); in matchSelectPattern()
7969 Value *CmpLHS = CmpI->getOperand(0); in matchDecomposedSelectPattern() local
7980 if (CastOp && CmpLHS->getType() != TrueVal->getType()) { in matchDecomposedSelectPattern()
7986 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, in matchDecomposedSelectPattern()
7995 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, in matchDecomposedSelectPattern()
8000 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, TrueVal, FalseVal, in matchDecomposedSelectPattern()