Make SCEVCallbackVH::allUsesReplacedWith update the old SCEVUnknown
authorDan Gohman <gohman@apple.com>
Wed, 28 Jul 2010 01:09:07 +0000 (01:09 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 28 Jul 2010 01:09:07 +0000 (01:09 +0000)
commit81f9121cda099f75e50485e79e8fdb423ae82792
treeb0a10d3a425e7c4f71a33c6269b0ec2cfc66117b
parent59846aced20b23882a97b92da5d653dc3f3e8526
Make SCEVCallbackVH::allUsesReplacedWith update the old SCEVUnknown
object, as it may still be referenced by SCEVs not cleaned up by the
use list traversal.

Also, in ScalarEvolution::forgetValue, only check for a SCEVUnknown
object for the original value, not for any value in the use list,
because other SCEVUnknown values aren't necessary obsolete at that
point.

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