diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-07-18 09:12:15 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-07-18 09:12:15 +0000 |
commit | 44e9836b173f75ab715f4501c46f4b5831879378 (patch) | |
tree | 5988e01d48f5e84d5cc06b254aab95cdd184828d /llvm/lib | |
parent | a807aae2265fcbea4a04290c8dd739fe02dc1bea (diff) | |
download | bcm5719-llvm-44e9836b173f75ab715f4501c46f4b5831879378.tar.gz bcm5719-llvm-44e9836b173f75ab715f4501c46f4b5831879378.zip |
Remove dead check.
llvm-svn: 76301
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 0a5fc80952b..f9e76578c73 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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... |