Lines Matching refs:TrueVal
3151 static Value *SimplifySelectInst(Value *CondVal, Value *TrueVal, in SimplifySelectInst() argument
3158 return TrueVal; in SimplifySelectInst()
3164 if (TrueVal == FalseVal) in SimplifySelectInst()
3165 return TrueVal; in SimplifySelectInst()
3168 if (isa<Constant>(TrueVal)) in SimplifySelectInst()
3169 return TrueVal; in SimplifySelectInst()
3172 if (isa<UndefValue>(TrueVal)) // select C, undef, X -> X in SimplifySelectInst()
3175 return TrueVal; in SimplifySelectInst()
3178 unsigned BitWidth = TrueVal->getType()->getScalarSizeInBits(); in SimplifySelectInst()
3208 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3210 return TrueWhenUnset ? FalseVal : TrueVal; in SimplifySelectInst()
3213 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3215 return TrueWhenUnset ? FalseVal : TrueVal; in SimplifySelectInst()
3220 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3222 return TrueWhenUnset ? TrueVal : FalseVal; in SimplifySelectInst()
3225 if (TrueVal == X && match(FalseVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3227 return TrueWhenUnset ? TrueVal : FalseVal; in SimplifySelectInst()
3235 Value *llvm::SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal, in SimplifySelectInst() argument
3240 return ::SimplifySelectInst(Cond, TrueVal, FalseVal, in SimplifySelectInst()