Don't (unconditionally) use getSCEVAtScope to simplify the step
authorDan Gohman <gohman@apple.com>
Fri, 19 Jun 2009 17:33:15 +0000 (17:33 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 19 Jun 2009 17:33:15 +0000 (17:33 +0000)
commit958e292c7a71e9105df2d46ac15dcd1f3cfa0ee2
treeef04fcff2b455457ee7e6dc32da5034ca155c88d
parentae60c0f78eedce7e3b5f81a46b1991de0862259b
Don't (unconditionally) use getSCEVAtScope to simplify the step
expression in IVUsers, because in the case of a use of a non-linear
addrec outside of a loop, this causes the addrec to be evaluated as
a linear addrec.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/IVUsers.cpp
test/Transforms/LoopStrengthReduce/quadradic-exit-value.ll [new file with mode: 0644]