In ScalarEvolution::forgetValue, eliminate any SCEVUnknown
authorDan Gohman <gohman@apple.com>
Wed, 30 Jun 2010 20:21:12 +0000 (20:21 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 30 Jun 2010 20:21:12 +0000 (20:21 +0000)
commit06028bcce46555e84944b7f8b674c05f32b2f07b
tree2ab9ebacf8f38924bea621d89fccb1faecacc832
parent7ac7ed868ab5ae708221757c95aa6ddb8983b1fa
In ScalarEvolution::forgetValue, eliminate any SCEVUnknown
entries associated with the value being erased in the
folding set map.  These entries used to be harmless, because
a SCEVUnknown doesn't store any information about its Value*,
so having a new Value allocated at the old Value's address
wasn't a problem. But now that ScalarEvolution is storing more
information about values, this is no longer safe.

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