[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LICM.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Dec 10 16:37:01 PST 2003


Changes in directory llvm/lib/Transforms/Scalar:

LICM.cpp updated: 1.48 -> 1.49

---
Log message:

Fix bug: LICM/sink_multiple_exits.ll

Thanks for pointing this out John  :)



---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Transforms/Scalar/LICM.cpp
diff -u llvm/lib/Transforms/Scalar/LICM.cpp:1.48 llvm/lib/Transforms/Scalar/LICM.cpp:1.49
--- llvm/lib/Transforms/Scalar/LICM.cpp:1.48	Wed Dec 10 14:43:29 2003
+++ llvm/lib/Transforms/Scalar/LICM.cpp	Wed Dec 10 16:35:56 2003
@@ -451,7 +451,7 @@
           // 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;





More information about the llvm-commits mailing list