commit | ac70ceafbcb6761f32634f981de4cca1a5faa417 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Apr 29 22:28:28 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Apr 29 22:28:28 2009 +0000 |
tree | 2b213d84c5fd702ff8d6c3026b80cc1183b38f42 | |
parent | f159ccd1cd6940fb3735e5992127a02b9ce59371 [diff] |
Generalize the cast-of-addrec folding to handle folding of SCEVs like (sext i8 {-128,+,1} to i64) to i64 {-128,+,1}, where the iteration crosses from negative to positive, but is still safe if the trip count is within range. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70421 91177308-0d34-0410-b5e6-96231b3b80d8