[llvm-commits] CVS: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp

Chris Lattner sabre at nondot.org
Sun Jan 14 16:15:25 PST 2007



Changes in directory llvm/lib/Transforms/Utils:

BreakCriticalEdges.cpp updated: 1.39 -> 1.40
---
Log message:

Fix Analysis/Dominators/2006-10-02-BreakCritEdges.ll 


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

 BreakCriticalEdges.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp
diff -u llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.39 llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.40
--- llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.39	Sun Jan 14 12:33:35 2007
+++ llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp	Sun Jan 14 18:15:09 2007
@@ -212,7 +212,8 @@
 
   // Should we update ImmediateDominator information?
   if (ImmediateDominators *ID = P->getAnalysisToUpdate<ImmediateDominators>()) {
-    if (ID->get(TIBB)) {  // Only do this if TIBB is reachable.
+    // Only do this if TIBB is reachable.
+    if (ID->get(TIBB) || &TIBB->getParent()->getEntryBlock() == TIBB) {
       // TIBB is the new immediate dominator for NewBB.
       ID->addNewBlock(NewBB, TIBB);
       






More information about the llvm-commits mailing list