Fold trunc casts into add-recurrence expressions, allowing the
authorDan Gohman <gohman@apple.com>
Fri, 8 May 2009 21:03:19 +0000 (21:03 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 8 May 2009 21:03:19 +0000 (21:03 +0000)
commit728c7f3059916fb0e0f98b4e9e45210fbd3f4340
tree9200b66e8832a31ca26d82063241f563a92eda33
parente688fafd3802aabab827293a520f18ec27d00fd7
Fold trunc casts into add-recurrence expressions, allowing the
add-recurrence to be exposed. Add a new SCEV folding rule to
help simplify expressions in the presence of these extra truncs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71264 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/trip-count4.ll [new file with mode: 0644]