From: Chris Lattner Date: Sun, 16 Jan 2011 05:37:55 +0000 (+0000) Subject: remove a dead check, this was needed before we had an explicit veto on uses of phis. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6eb6116d52a729b36ab9089e656267e09cc6207a;p=oota-llvm.git remove a dead check, this was needed before we had an explicit veto on uses of phis. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123569 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index 23e76ee499f..ab019a1362b 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -552,11 +552,6 @@ Instruction *InstCombiner::FoldOpIntoPhi(Instruction &I) { if (InvokeInst *II = dyn_cast(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