summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/LoopUnroll.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-05-08 15:14:19 +0000
committerDan Gohman <gohman@apple.com>2007-05-08 15:14:19 +0000
commitf742c2363c6927b42bb005c9976864a9e2828b18 (patch)
tree3c69a90aef4b1a4e191a4fcf64ae08da36198d1b /lib/Transforms/Scalar/LoopUnroll.cpp
parente8a9054a507822baaf19759d8b616e1f7af2eff7 (diff)
downloadllvm-f742c2363c6927b42bb005c9976864a9e2828b18.tar.gz
llvm-f742c2363c6927b42bb005c9976864a9e2828b18.tar.bz2
llvm-f742c2363c6927b42bb005c9976864a9e2828b18.tar.xz
Correct the comment for ApproximateLoopSize to reflect what it actually does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopUnroll.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopUnroll.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LoopUnroll.cpp b/lib/Transforms/Scalar/LoopUnroll.cpp
index 89ca6d9158..f0bbb2f09f 100644
--- a/lib/Transforms/Scalar/LoopUnroll.cpp
+++ b/lib/Transforms/Scalar/LoopUnroll.cpp
@@ -72,8 +72,7 @@ namespace {
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) {