summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 4203818baaf..02a1dbdb933 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -1,7 +1,9 @@
//===- IndVarSimplify.cpp - Induction Variable Elimination ----------------===//
//
-// InductionVariableSimplify - Transform induction variables in a program
-// to all use a single cannonical induction variable per loop.
+// Guarantees that all loops with identifiable, linear, induction variables will
+// be transformed to have a single, cannonical, induction variable. After this
+// pass runs, it guarantees the the first PHI node of the header block in the
+// loop is the cannonical induction variable if there is one.
//
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud