[llvm-commits] [llvm] r72131 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Dan Gohman gohman at apple.com
Tue May 19 13:37:36 PDT 2009


Author: djg
Date: Tue May 19 15:37:36 2009
New Revision: 72131

URL: http://llvm.org/viewvc/llvm-project?rev=72131&view=rev
Log:
Add some more comments to the top of this file.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=72131&r1=72130&r2=72131&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Tue May 19 15:37:36 2009
@@ -7,8 +7,15 @@
 //
 //===----------------------------------------------------------------------===//
 //
+// This transformation analyzes and transforms the induction variables (and
+// computations derived from them) into forms suitable for efficient execution
+// on the target.
+//
 // This pass performs a strength reduction on array references inside loops that
-// have as one or more of their components the loop induction variable.
+// have as one or more of their components the loop induction variable, it
+// rewrites expressions to take advantage of scaled-index addressing modes
+// available on the target, and it performs a variety of other optimizations
+// related to loop induction variables.
 //
 //===----------------------------------------------------------------------===//
 





More information about the llvm-commits mailing list