Update comments to reflect the current code.
authorDan Gohman <gohman@apple.com>
Wed, 29 Apr 2009 01:54:20 +0000 (01:54 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 29 Apr 2009 01:54:20 +0000 (01:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70357 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index 63ad2970f48be3989f4b8b99a98750cd384ed698..7f6321792572c867644738e9e01c394544040e58 100644 (file)
@@ -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);