Fix ScalarEvolution::getAddRecExpr's code which canonicalized the
authorDan Gohman <gohman@apple.com>
Fri, 26 Jun 2009 22:36:20 +0000 (22:36 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 26 Jun 2009 22:36:20 +0000 (22:36 +0000)
commit9a80b459ed5c6c55f4e20e443e86c459e89170c9
tree6b9fbfa131e58a2b3e62a2560047f62e5cb6d259
parentf7f02a9c7f833736aa4a22a6fd3606b9f118ad1f
Fix ScalarEvolution::getAddRecExpr's code which canonicalized the
nesting order of nested AddRec expressions to skip the transformation
if it would introduce an AddRec with operands not loop-invariant
with respect to its loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74343 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp