Lines Matching refs:TrueVal
5268 Value *TrueVal, Value *FalseVal, in matchFastFloatClamp() argument
5277 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
5282 LHS = TrueVal; in matchFastFloatClamp()
5286 if (CmpRHS != TrueVal || !match(CmpRHS, m_APFloat(FC1)) || !FC1->isFinite()) in matchFastFloatClamp()
5322 Value *TrueVal, Value *FalseVal) { in matchClamp() argument
5324 if (CmpRHS != TrueVal) { in matchClamp()
5326 std::swap(TrueVal, FalseVal); in matchClamp()
5329 if (CmpRHS == TrueVal && match(CmpRHS, m_APInt(C1))) { in matchClamp()
5467 Value *TrueVal, Value *FalseVal, in matchMinMax() argument
5471 LHS = TrueVal; in matchMinMax()
5474 SelectPatternResult SPR = matchClamp(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal); in matchMinMax()
5478 SPR = matchMinMaxOfMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, Depth); in matchMinMax()
5485 if (CmpLHS == getNotValue(TrueVal) && CmpRHS == getNotValue(FalseVal)) { in matchMinMax()
5497 if (CmpLHS == getNotValue(FalseVal) && CmpRHS == getNotValue(TrueVal)) { in matchMinMax()
5513 if (match(TrueVal, m_Zero()) && in matchMinMax()
5521 match(TrueVal, m_NSWSub(m_Specific(CmpLHS), m_Specific(CmpRHS)))) in matchMinMax()
5530 if ((CmpLHS == TrueVal && match(FalseVal, m_APInt(C2))) || in matchMinMax()
5531 (CmpLHS == FalseVal && match(TrueVal, m_APInt(C2)))) { in matchMinMax()
5537 return {CmpLHS == TrueVal ? SPF_UMAX : SPF_UMIN, SPNB_NA, false}; in matchMinMax()
5574 Value *TrueVal, Value *FalseVal, in matchSelectPattern() argument
5583 if (match(TrueVal, m_AnyZeroFP()) && !match(FalseVal, m_AnyZeroFP()) && in matchSelectPattern()
5584 !cast<Constant>(TrueVal)->containsUndefElement()) in matchSelectPattern()
5585 OutputZeroVal = TrueVal; in matchSelectPattern()
5586 else if (match(FalseVal, m_AnyZeroFP()) && !match(TrueVal, m_AnyZeroFP()) && in matchSelectPattern()
5658 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
5669 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
5691 if (isKnownNegation(TrueVal, FalseVal)) { in matchSelectPattern()
5698 if (match(TrueVal, MaybeSExtCmpLHS)) { in matchSelectPattern()
5701 LHS = TrueVal; in matchSelectPattern()
5724 RHS = TrueVal; in matchSelectPattern()
5725 if (match(CmpLHS, m_Neg(m_Specific(TrueVal)))) in matchSelectPattern()
5741 return matchMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS, Depth); in matchSelectPattern()
5751 return matchFastFloatClamp(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS); in matchSelectPattern()
5873 Value *TrueVal = SI->getTrueValue(); in matchSelectPattern() local
5876 return llvm::matchDecomposedSelectPattern(CmpI, TrueVal, FalseVal, LHS, RHS, in matchSelectPattern()
5881 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS, in matchDecomposedSelectPattern() argument
5895 if (CastOp && CmpLHS->getType() != TrueVal->getType()) { in matchDecomposedSelectPattern()
5896 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) { in matchDecomposedSelectPattern()
5902 cast<CastInst>(TrueVal)->getOperand(0), C, in matchDecomposedSelectPattern()
5905 if (Value *C = lookThroughCast(CmpI, FalseVal, TrueVal, CastOp)) { in matchDecomposedSelectPattern()
5915 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, TrueVal, FalseVal, in matchDecomposedSelectPattern()