Lines Matching refs:TrueVal
3376 static Value *SimplifySelectInst(Value *CondVal, Value *TrueVal, in SimplifySelectInst() argument
3383 return TrueVal; in SimplifySelectInst()
3389 if (TrueVal == FalseVal) in SimplifySelectInst()
3390 return TrueVal; in SimplifySelectInst()
3393 if (isa<Constant>(TrueVal)) in SimplifySelectInst()
3394 return TrueVal; in SimplifySelectInst()
3397 if (isa<UndefValue>(TrueVal)) // select C, undef, X -> X in SimplifySelectInst()
3400 return TrueVal; in SimplifySelectInst()
3403 unsigned BitWidth = Q.DL.getTypeSizeInBits(TrueVal->getType()); in SimplifySelectInst()
3432 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3434 return TrueWhenUnset ? FalseVal : TrueVal; in SimplifySelectInst()
3437 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3439 return TrueWhenUnset ? FalseVal : TrueVal; in SimplifySelectInst()
3444 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3446 return TrueWhenUnset ? TrueVal : FalseVal; in SimplifySelectInst()
3449 if (TrueVal == X && match(FalseVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3451 return TrueWhenUnset ? TrueVal : FalseVal; in SimplifySelectInst()
3477 TrueVal || in SimplifySelectInst()
3479 TrueVal) in SimplifySelectInst()
3481 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst()
3483 SimplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, Q, MaxRecurse) == in SimplifySelectInst()
3487 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst()
3489 SimplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, Q, MaxRecurse) == in SimplifySelectInst()
3491 return TrueVal; in SimplifySelectInst()
3493 TrueVal || in SimplifySelectInst()
3495 TrueVal) in SimplifySelectInst()
3496 return TrueVal; in SimplifySelectInst()
3503 Value *llvm::SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal, in SimplifySelectInst() argument
3508 return ::SimplifySelectInst(Cond, TrueVal, FalseVal, in SimplifySelectInst()