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 | 024f613fde56608add39af22b6a54bb3a2ce97d4 (patch) | |
| tree | 078e329942a22b9864b88552669b1cb8b70ebc29 /lib/Transforms | |
| parent | 3cdf8d5c52e991cc088488aa59c06a55b6b10ebc (diff) | |
| download | external_llvm-024f613fde56608add39af22b6a54bb3a2ce97d4.zip external_llvm-024f613fde56608add39af22b6a54bb3a2ce97d4.tar.gz external_llvm-024f613fde56608add39af22b6a54bb3a2ce97d4.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')
| -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: |
