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

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 5 17:22:02 PST 2004


Changes in directory llvm/lib/Transforms/Scalar:

LoopSimplify.cpp updated: 1.33 -> 1.34

---
Log message:

Fix another dominator update bug.  These bugs keep getting exposed because GCSE
keeps finding more code motion opportunities now that the dominators are correct!


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

Index: llvm/lib/Transforms/Scalar/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.33 llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.34
--- llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.33	Thu Feb  5 16:33:26 2004
+++ llvm/lib/Transforms/Scalar/LoopSimplify.cpp	Thu Feb  5 17:20:59 2004
@@ -516,7 +516,7 @@
     if (NewBBDominatesNewBBSucc)
       for (pred_iterator PI = pred_begin(NewBBSucc), E = pred_end(NewBBSucc);
            PI != E; ++PI)
-        if (*PI != NewBB && !DS.dominates(OnePred, *PI)) {
+        if (*PI != NewBB && !DS.dominates(NewBBSucc, *PI)) {
           NewBBDominatesNewBBSucc = false;
           break;
         }





More information about the llvm-commits mailing list