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

Chris Lattner lattner at cs.uiuc.edu
Fri Feb 28 10:55:01 PST 2003


Changes in directory llvm/lib/Transforms/Scalar:

LoopPreheaders.cpp updated: 1.9 -> 1.10

---
Log message:

Fix bug I introduced yesterday :(


---
Diffs of the changes:

Index: llvm/lib/Transforms/Scalar/LoopPreheaders.cpp
diff -u llvm/lib/Transforms/Scalar/LoopPreheaders.cpp:1.9 llvm/lib/Transforms/Scalar/LoopPreheaders.cpp:1.10
--- llvm/lib/Transforms/Scalar/LoopPreheaders.cpp:1.9	Thu Feb 27 21:07:54 2003
+++ llvm/lib/Transforms/Scalar/LoopPreheaders.cpp	Fri Feb 28 10:54:17 2003
@@ -307,7 +307,8 @@
 
   // Replace any instances of Exit with NewBB in this and any nested loops...
   for (df_iterator<Loop*> I = df_begin(L), E = df_end(L); I != E; ++I)
-    I->changeExitBlock(Exit, NewBB);   // Update exit block information
+    if (I->hasExitBlock(Exit))
+      I->changeExitBlock(Exit, NewBB);   // Update exit block information
 
   // Update dominator information...  The blocks that dominate NewBB are the
   // intersection of the dominators of predecessors, plus the block itself.





More information about the llvm-commits mailing list