summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-10 22:35:56 +0000
committerChris Lattner <sabre@nondot.org>2003-12-10 22:35:56 +0000
commit6281fd3eada3ccfb4c8e51889b3a9616285f3e5d (patch)
tree219b485f30b04053e882129a6c8a3f8135df110d
parent55c2113b7b76d5f84c3b6aa6a41a46af74478244 (diff)
downloadbcm5719-llvm-6281fd3eada3ccfb4c8e51889b3a9616285f3e5d.tar.gz
bcm5719-llvm-6281fd3eada3ccfb4c8e51889b3a9616285f3e5d.zip
Fix bug: LICM/sink_multiple_exits.ll
Thanks for pointing this out John :) llvm-svn: 10387
-rw-r--r--llvm/lib/Transforms/Scalar/LICM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index 55b4942bb9a..0d8a848cc0d 100644
--- a/llvm/lib/Transforms/Scalar/LICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -451,7 +451,7 @@ void LICM::sink(Instruction &I) {
// instruction, otherwise clone the original instruction and insert
// the copy.
Instruction *New;
- if (InsertedBlocks.empty()) {
+ if (InsertedBlocks.size() == 1) {
I.getParent()->getInstList().remove(&I);
ExitBlock->getInstList().insert(InsertPt, &I);
New = &I;
OpenPOWER on IntegriCloud