diff options
author | Dan Gohman <gohman@apple.com> | 2009-06-14 22:38:41 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-06-14 22:38:41 +0000 |
commit | ea73f3c2e14d84bb4cb07bd6a1a3d7915f3aff83 (patch) | |
tree | 078e329942a22b9864b88552669b1cb8b70ebc29 /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | ec08da01fca73fa040b418a737f4c04ccf866c81 (diff) | |
download | external_llvm-ea73f3c2e14d84bb4cb07bd6a1a3d7915f3aff83.zip external_llvm-ea73f3c2e14d84bb4cb07bd6a1a3d7915f3aff83.tar.gz external_llvm-ea73f3c2e14d84bb4cb07bd6a1a3d7915f3aff83.tar.bz2 |
Add another item to the list of things that indvars does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 38b1198..429de93 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -17,7 +17,10 @@ // which starts at zero and steps by one. // 2. The canonical induction variable is guaranteed to be the first PHI node // in the loop header block. -// 3. Any pointer arithmetic recurrences are raised to use array subscripts. +// 3. The canonical induction variable is guaranteed to be in a wide enough +// type so that IV expressions need not be (directly) zero-extended or +// sign-extended. +// 4. Any pointer arithmetic recurrences are raised to use array subscripts. // // If the trip count of a loop is computable, this pass also makes the following // changes: |