Remove the Expr member from IVUsers. Instead of remembering the expression,
authorDan Gohman <gohman@apple.com>
Mon, 19 Apr 2010 21:48:58 +0000 (21:48 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 19 Apr 2010 21:48:58 +0000 (21:48 +0000)
commitc056454ecfe66f7c646fedef594f4ed48a9f3bf0
tree28e6d0cdf9d74993b1ee12acf2f1a032d0b8eb17
parent22e401f5d4d863e753bc8e5655bac481602d22e6
Remove the Expr member from IVUsers. Instead of remembering the expression,
just ask ScalarEvolution for it on demand. This helps IVUsers be more robust
in the case of expressions changing underneath it. This fixes PR6862.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101819 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/IVUsers.h
lib/Analysis/IVUsers.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/IndVarSimplify/eliminate-comparison.ll