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

Jeff Cohen jeffc at jolt-lang.org
Sat Mar 5 14:45:51 PST 2005



Changes in directory llvm/lib/Transforms/Scalar:

LoopStrengthReduce.cpp updated: 1.7 -> 1.8
---
Log message:

Reformat comments to fix 80 columns.

---
Diffs of the changes:  (+8 -7)

 LoopStrengthReduce.cpp |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)


Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.7 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.8
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.7	Sat Mar  5 16:40:34 2005
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp	Sat Mar  5 16:45:40 2005
@@ -203,17 +203,18 @@
                                     Preheader->getTerminator());
     }
 
-    // The next step of the strength reduction is to create a PHI that will choose
-    // between the initial GEP we created and inserted into the preheader, and 
-    // the incremented GEP that we will create below and insert into the loop body
+    // The next step of the strength reduction is to create a PHI that will
+    // choose between the initial GEP we created and inserted into the
+    // preheader, and the incremented GEP that we will create below and insert
+    // into the loop body.
     NewPHI = new PHINode(PreGEP->getType(), 
                                   GEPI->getName()+".str", InsertBefore);
     NewPHI->addIncoming(PreGEP, Preheader);
     
-    // Now, create the GEP instruction to increment by one the value selected by
-    // the PHI instruction we just created above, and add it as the second
-    // incoming Value/BasicBlock pair to the PHINode.  It is inserted before the
-    // increment of the canonical induction variable.
+    // Now, create the GEP instruction to increment by one the value selected
+    // by the PHI instruction we just created above, and add it as the second
+    // incoming Value/BasicBlock pair to the PHINode.  It is inserted before
+    // the increment of the canonical induction variable.
     Instruction *IncrInst = 
       const_cast<Instruction*>(L->getCanonicalInductionVariableIncrement());
     GetElementPtrInst *StrGEP = new GetElementPtrInst(NewPHI, inc_op_vector,






More information about the llvm-commits mailing list