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

Dan Gohman djg at cray.com
Tue May 8 08:14:37 PDT 2007



Changes in directory llvm/lib/Transforms/Scalar:

LoopUnroll.cpp updated: 1.44 -> 1.45
---
Log message:

Correct the comment for ApproximateLoopSize to reflect what it actually does.


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

 LoopUnroll.cpp |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.44 llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.45
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.44	Sat May  5 13:49:57 2007
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp	Tue May  8 10:14:19 2007
@@ -72,8 +72,7 @@
 
 LoopPass *llvm::createLoopUnrollPass() { return new LoopUnroll(); }
 
-/// ApproximateLoopSize - Approximate the size of the loop after it has been
-/// unrolled.
+/// ApproximateLoopSize - Approximate the size of the loop.
 static unsigned ApproximateLoopSize(const Loop *L) {
   unsigned Size = 0;
   for (unsigned i = 0, e = L->getBlocks().size(); i != e; ++i) {






More information about the llvm-commits mailing list