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

Chris Lattner sabre at nondot.org
Fri Oct 27 23:45:48 PDT 2006



Changes in directory llvm/lib/Transforms/Scalar:

LoopStrengthReduce.cpp updated: 1.91 -> 1.92
---
Log message:

break edges more intelligently


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

 LoopStrengthReduce.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.91 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.92
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.91	Fri Oct 27 19:59:20 2006
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp	Sat Oct 28 01:45:33 2006
@@ -378,7 +378,8 @@
   // post-incremented value.
   for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i)
     if (PN->getIncomingValue(i) == IV) {
-      SplitCriticalEdge(PN->getIncomingBlock(i), PN->getParent(), P);
+      SplitCriticalEdge(PN->getIncomingBlock(i), PN->getParent(), P,
+                        true);
       // Splitting the critical edge can reduce the number of entries in this
       // PHI.
       e = PN->getNumIncomingValues();
@@ -582,7 +583,7 @@
           (PN->getParent() != L->getHeader() || !L->contains(PHIPred))) {
         
         // First step, split the critical edge.
-        SplitCriticalEdge(PHIPred, PN->getParent(), P);
+        SplitCriticalEdge(PHIPred, PN->getParent(), P, true);
             
         // Next step: move the basic block.  In particular, if the PHI node
         // is outside of the loop, and PredTI is in the loop, we want to






More information about the llvm-commits mailing list