summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-19 20:37:36 +0000
committerDan Gohman <gohman@apple.com>2009-05-19 20:37:36 +0000
commit97f70add3ca7005411a3ffc685ab81a50ab9382a (patch)
tree5106ea9dae918fa0992a19b3ed6d583d3242b92a /llvm/lib/Transforms
parentadc70d680636b1f86a4db20fb790fa7ad8af530a (diff)
downloadbcm5719-llvm-97f70add3ca7005411a3ffc685ab81a50ab9382a.tar.gz
bcm5719-llvm-97f70add3ca7005411a3ffc685ab81a50ab9382a.zip
Add some more comments to the top of this file.
llvm-svn: 72131
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 15b1506700c..3a71d279772 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -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.
//
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud