OSDN Git Service

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)
commit72e3bd3bfef59d04e61e3f2538df51e95ebbb759
tree28e6d0cdf9d74993b1ee12acf2f1a032d0b8eb17
parentb0573281ad2b6d815f6dd2e7048afa50f5863dd6
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