aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-29 01:54:20 +0000
committerDan Gohman <gohman@apple.com>2009-04-29 01:54:20 +0000
commit4ada77fc99ca03fc67c4e7b7ef3c5b5c8001e0a8 (patch)
tree6f73be0a3c8233ed72fe7ae3de8d08c7d24e586f
parente16f0f93ffd4d6f54430a33a9e998b947a9ef7e8 (diff)
downloadexternal_llvm-4ada77fc99ca03fc67c4e7b7ef3c5b5c8001e0a8.zip
external_llvm-4ada77fc99ca03fc67c4e7b7ef3c5b5c8001e0a8.tar.gz
external_llvm-4ada77fc99ca03fc67c4e7b7ef3c5b5c8001e0a8.tar.bz2
Update comments to reflect the current code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70357 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/ScalarEvolution.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index 63ad297..7f63217 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -717,8 +717,8 @@ SCEVHandle ScalarEvolution::getZeroExtendExpr(const SCEVHandle &Op,
// that value once it has finished.
SCEVHandle BECount = getBackedgeTakenCount(AR->getLoop());
if (!isa<SCEVCouldNotCompute>(BECount)) {
- // Compute the extent of AR and divide it by the step value. This is
- // used to determine if it's safe to extend the stride value.
+ // Manually compute the final value for AR, checking for
+ // overflow at each step.
SCEVHandle Start = AR->getStart();
SCEVHandle Step = AR->getStepRecurrence(*this);
@@ -806,8 +806,8 @@ SCEVHandle ScalarEvolution::getSignExtendExpr(const SCEVHandle &Op,
// that value once it has finished.
SCEVHandle BECount = getBackedgeTakenCount(AR->getLoop());
if (!isa<SCEVCouldNotCompute>(BECount)) {
- // Compute the extent of AR and divide it by the step value. This is
- // used to determine if it's safe to extend the stride value.
+ // Manually compute the final value for AR, checking for
+ // overflow at each step.
SCEVHandle Start = AR->getStart();
SCEVHandle Step = AR->getStepRecurrence(*this);