Lines Matching refs:TrueVal
5768 Value *TrueVal, Value *FalseVal, in matchFastFloatClamp() argument
5777 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
5782 LHS = TrueVal; in matchFastFloatClamp()
5786 if (CmpRHS != TrueVal || !match(CmpRHS, m_APFloat(FC1)) || !FC1->isFinite()) in matchFastFloatClamp()
5822 Value *TrueVal, Value *FalseVal) { in matchClamp() argument
5824 if (CmpRHS != TrueVal) { in matchClamp()
5826 std::swap(TrueVal, FalseVal); in matchClamp()
5829 if (CmpRHS == TrueVal && match(CmpRHS, m_APInt(C1))) { in matchClamp()
5967 Value *TrueVal, Value *FalseVal, in matchMinMax() argument
5971 LHS = TrueVal; in matchMinMax()
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()
6016 if ((CmpLHS == TrueVal && match(FalseVal, m_APInt(C2))) || in matchMinMax()
6017 (CmpLHS == FalseVal && match(TrueVal, m_APInt(C2)))) { in matchMinMax()
6022 return {CmpLHS == TrueVal ? SPF_UMAX : SPF_UMIN, SPNB_NA, false}; in matchMinMax()
6058 Value *TrueVal, Value *FalseVal, in matchSelectPattern() argument
6067 if (match(TrueVal, m_AnyZeroFP()) && !match(FalseVal, m_AnyZeroFP()) && in matchSelectPattern()
6068 !cast<Constant>(TrueVal)->containsUndefOrPoisonElement()) in matchSelectPattern()
6069 OutputZeroVal = TrueVal; in matchSelectPattern()
6070 else if (match(FalseVal, m_AnyZeroFP()) && !match(TrueVal, m_AnyZeroFP()) && in matchSelectPattern()
6142 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
6153 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
6175 if (isKnownNegation(TrueVal, FalseVal)) { in matchSelectPattern()
6182 if (match(TrueVal, MaybeSExtCmpLHS)) { in matchSelectPattern()
6185 LHS = TrueVal; in matchSelectPattern()
6208 RHS = TrueVal; in matchSelectPattern()
6209 if (match(CmpLHS, m_Neg(m_Specific(TrueVal)))) in matchSelectPattern()
6225 return matchMinMax(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS, Depth); in matchSelectPattern()
6235 return matchFastFloatClamp(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, LHS, RHS); in matchSelectPattern()
6357 Value *TrueVal = SI->getTrueValue(); in matchSelectPattern() local
6360 return llvm::matchDecomposedSelectPattern(CmpI, TrueVal, FalseVal, LHS, RHS, in matchSelectPattern()
6365 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS, in matchDecomposedSelectPattern() argument
6379 if (CastOp && CmpLHS->getType() != TrueVal->getType()) { in matchDecomposedSelectPattern()
6380 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) { in matchDecomposedSelectPattern()
6386 cast<CastInst>(TrueVal)->getOperand(0), C, in matchDecomposedSelectPattern()
6389 if (Value *C = lookThroughCast(CmpI, FalseVal, TrueVal, CastOp)) { in matchDecomposedSelectPattern()
6399 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, TrueVal, FalseVal, in matchDecomposedSelectPattern()