diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-16 05:37:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-16 05:37:55 +0000 |
commit | adb1a233b1345401325bc097183cb8d1b01d684e (patch) | |
tree | 540cee5c66561065590781f94c104d7184b847c7 /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | |
parent | d55581ded8454dc023acc4020497d403e191dff7 (diff) | |
download | bcm5719-llvm-adb1a233b1345401325bc097183cb8d1b01d684e.tar.gz bcm5719-llvm-adb1a233b1345401325bc097183cb8d1b01d684e.zip |
remove a dead check, this was needed before we had an explicit veto on uses of phis.
llvm-svn: 123569
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index 23e76ee499f..ab019a1362b 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -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 |