[llvm-commits] [llvm] r70357 -	/llvm/trunk/lib/Analysis/ScalarEvolution.cpp
    Dan Gohman 
    gohman at apple.com
       
    Tue Apr 28 18:54:53 PDT 2009
    
    
  
Author: djg
Date: Tue Apr 28 20:54:20 2009
New Revision: 70357
URL: http://llvm.org/viewvc/llvm-project?rev=70357&view=rev
Log:
Update comments to reflect the current code.
Modified:
    llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=70357&r1=70356&r2=70357&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Tue Apr 28 20:54:20 2009
@@ -717,8 +717,8 @@
       // 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 @@
       // 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);
 
    
    
More information about the llvm-commits
mailing list