Lines Matching refs:TrueVal
4519 Value *TrueVal, Value *FalseVal, in matchFastFloatClamp() argument
4528 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
4533 LHS = TrueVal; in matchFastFloatClamp()
4537 if (CmpRHS != TrueVal || !match(CmpRHS, m_APFloat(FC1)) || !FC1->isFinite()) in matchFastFloatClamp()
4573 Value *TrueVal, Value *FalseVal) { in matchClamp() argument
4575 if (CmpRHS != TrueVal) { in matchClamp()
4577 std::swap(TrueVal, FalseVal); in matchClamp()
4580 if (CmpRHS == TrueVal && match(CmpRHS, m_APInt(C1))) { in matchClamp()
4703 Value *TrueVal, Value *FalseVal, in matchMinMax() argument
4707 LHS = TrueVal; in matchMinMax()
4710 SelectPatternResult SPR = matchClamp(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal); in matchMinMax()
4714 SPR = matchMinMaxOfMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, Depth); in matchMinMax()
4724 if (match(TrueVal, m_Zero()) && in matchMinMax()
4732 match(TrueVal, m_NSWSub(m_Specific(CmpLHS), m_Specific(CmpRHS)))) in matchMinMax()
4741 if ((CmpLHS == TrueVal && match(FalseVal, m_APInt(C2))) || in matchMinMax()
4742 (CmpLHS == FalseVal && match(TrueVal, m_APInt(C2)))) { in matchMinMax()
4748 return {CmpLHS == TrueVal ? SPF_UMAX : SPF_UMIN, SPNB_NA, false}; in matchMinMax()
4761 if (match(TrueVal, m_Not(m_Specific(CmpLHS))) && in matchMinMax()
4768 match(TrueVal, m_APInt(C2)) && ~(*C1) == *C2) in matchMinMax()
4798 Value *TrueVal, Value *FalseVal, in matchSelectPattern() argument
4807 if (match(TrueVal, m_AnyZeroFP()) && !match(FalseVal, m_AnyZeroFP()) && in matchSelectPattern()
4808 !cast<Constant>(TrueVal)->containsUndefElement()) in matchSelectPattern()
4809 OutputZeroVal = TrueVal; in matchSelectPattern()
4810 else if (match(FalseVal, m_AnyZeroFP()) && !match(TrueVal, m_AnyZeroFP()) && in matchSelectPattern()
4882 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
4893 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
4915 if (isKnownNegation(TrueVal, FalseVal)) { in matchSelectPattern()
4922 if (match(TrueVal, MaybeSExtCmpLHS)) { in matchSelectPattern()
4925 LHS = TrueVal; in matchSelectPattern()
4944 RHS = TrueVal; in matchSelectPattern()
4945 if (match(CmpLHS, m_Neg(m_Specific(TrueVal)))) in matchSelectPattern()
4961 return matchMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS, Depth); in matchSelectPattern()
4971 return matchFastFloatClamp(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS); in matchSelectPattern()
5096 Value *TrueVal = SI->getTrueValue(); in matchSelectPattern() local
5107 if (CastOp && CmpLHS->getType() != TrueVal->getType()) { in matchSelectPattern()
5108 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) { in matchSelectPattern()
5114 cast<CastInst>(TrueVal)->getOperand(0), C, in matchSelectPattern()
5117 if (Value *C = lookThroughCast(CmpI, FalseVal, TrueVal, CastOp)) { in matchSelectPattern()
5127 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, TrueVal, FalseVal, in matchSelectPattern()