Fix a nasty dangling pointer issue. The ScalarEvolution pass would keep a
authorChris Lattner <sabre@nondot.org>
Wed, 3 Aug 2005 21:36:09 +0000 (21:36 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 3 Aug 2005 21:36:09 +0000 (21:36 +0000)
commit52d83e66ee881f85d8a2ccac0183766a6386bfc9
tree2ad0e9e4ef92c5281774d20dbde2dd9d0655cd41
parenta23076a5f63ea4205a866cce81829343b4ca8907
Fix a nasty dangling pointer issue.  The ScalarEvolution pass would keep a
map from instruction* to SCEVHandles.  When we delete instructions, we have
to tell it about it.  We would run into nasty cases where new instructions
were reallocated at old instruction addresses and get the old map values.
Bad bad bad :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp