Remove dead check.

llvm-svn: 76301
This commit is contained in:
Eli Friedman 2009-07-18 09:12:15 +00:00
parent a807aae226
commit 44e9836b17
1 changed files with 1 additions and 3 deletions

View File

@ -2652,9 +2652,7 @@ Instruction *InstCombiner::visitMul(BinaryOperator &I) {
bool Changed = SimplifyCommutative(I);
Value *Op0 = I.getOperand(0);
// TODO: If Op1 is undef and Op0 is finite, return zero.
if (!I.getType()->isFPOrFPVector() &&
isa<UndefValue>(I.getOperand(1))) // undef * X -> 0
if (isa<UndefValue>(I.getOperand(1))) // undef * X -> 0
return ReplaceInstUsesWith(I, Context->getNullValue(I.getType()));
// Simplify mul instructions with a constant RHS...