remove a dead check, this was needed before we had an explicit veto on uses of phis.
authorChris Lattner <sabre@nondot.org>
Sun, 16 Jan 2011 05:37:55 +0000 (05:37 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Jan 2011 05:37:55 +0000 (05:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123569 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstructionCombining.cpp

index 23e76ee499f04b3549aea1733f46266d5a59c285..ab019a1362b19b703906d26980aefe48212dd4f5 100644 (file)
@@ -552,11 +552,6 @@ Instruction *InstCombiner::FoldOpIntoPhi(Instruction &I) {
     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