Remove dead check.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 18 Jul 2009 09:12:15 +0000 (09:12 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 18 Jul 2009 09:12:15 +0000 (09:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76301 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 0a5fc80952bd62f548bf4f0cd89c28147849f3b6..f9e76578c73255aa569267376e7af3d3254977e5 100644 (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...