[IndVars] Fix PR24356.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 6 Aug 2015 20:43:41 +0000 (20:43 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 6 Aug 2015 20:43:41 +0000 (20:43 +0000)
commit93011351eadeb5343daf5351eaabfd5289e845c3
tree0ba059b8bf0cd2290490dcb7bd87ad50e75402cd
parent95d9915c5c400b09e262a4920514360d69ccd731
[IndVars] Fix PR24356.

Unsigned predicates increase or decrease agnostic of the signs of their
increments.

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