[llvm-commits] [llvm] r123569 - /llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp

Chris Lattner sabre at nondot.org
Sat Jan 15 21:37:55 PST 2011


Author: lattner
Date: Sat Jan 15 23:37:55 2011
New Revision: 123569

URL: http://llvm.org/viewvc/llvm-project?rev=123569&view=rev
Log:
remove a dead check, this was needed before we had an explicit veto on uses of phis.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp?rev=123569&r1=123568&r2=123569&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp Sat Jan 15 23:37:55 2011
@@ -552,11 +552,6 @@
     if (InvokeInst *II = dyn_cast<InvokeInst>(InVal))
       if (II->getParent() == NonConstBB)
         return 0;
-    
-    // If the incoming non-constant value is in I's block, we have an infinite
-    // loop.
-    if (NonConstBB == I.getParent())
-      return 0;
   }
   
   // If there is exactly one non-constant value, we can insert a copy of the





More information about the llvm-commits mailing list