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

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 5 16:34:15 PST 2004


Changes in directory llvm/lib/Transforms/Scalar:

LoopSimplify.cpp updated: 1.32 -> 1.33

---
Log message:

Fix bug updating dominators


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

Index: llvm/lib/Transforms/Scalar/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.32 llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.33
--- llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.32	Thu Feb  5 15:12:24 2004
+++ llvm/lib/Transforms/Scalar/LoopSimplify.cpp	Thu Feb  5 16:33:26 2004
@@ -533,12 +533,12 @@
   DS.addBasicBlock(NewBB, NewBBDomSet);
 
   // If NewBB dominates some blocks, then it will dominate all blocks that
-  // PredBlocks[0] used to except for PredBlocks[0] itself.
+  // NewBBSucc does.
   if (NewBBDominatesNewBBSucc) {
     BasicBlock *PredBlock = PredBlocks[0];
     Function *F = NewBB->getParent();
     for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I)
-      if (DS.properlyDominates(PredBlock, I))
+      if (DS.dominates(NewBBSucc, I))
         DS.addDominator(I, NewBB);
   }
 





More information about the llvm-commits mailing list