diff options
author | Dan Gohman <gohman@apple.com> | 2009-05-02 21:19:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-05-02 21:19:20 +0000 |
commit | e9a38d16fe7f26664ca8d2a88f87b18c169b0795 (patch) | |
tree | 932a52f777ffead22325de0a8baa3ae5ba119747 /llvm/lib/Transforms/Scalar/LoopDeletion.cpp | |
parent | 745ad4486ebd88c9972699c0e8019955660b52e8 (diff) | |
download | bcm5719-llvm-e9a38d16fe7f26664ca8d2a88f87b18c169b0795.tar.gz bcm5719-llvm-e9a38d16fe7f26664ca8d2a88f87b18c169b0795.zip |
Convert ScalarEvolution to use CallbackVH for its internal map. This
makes ScalarEvolution::deleteValueFromRecords, and it's code that
subtly needed to be called before ReplaceAllUsesWith, unnecessary.
It also makes ValueDeletionListener unnecessary.
llvm-svn: 70645
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDeletion.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopDeletion.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp index 83c25619bfc..96b7a5288a7 100644 --- a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp +++ b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp @@ -246,13 +246,6 @@ bool LoopDeletion::runOnLoop(Loop* L, LPPassManager& LPM) { DT.eraseNode(*LI); if (DF) DF->removeBlock(*LI); - // Remove instructions that we're deleting from ScalarEvolution. - for (BasicBlock::iterator BI = (*LI)->begin(), BE = (*LI)->end(); - BI != BE; ++BI) - SE.deleteValueFromRecords(BI); - - SE.deleteValueFromRecords(*LI); - // Remove the block from the reference counting scheme, so that we can // delete it freely later. (*LI)->dropAllReferences(); |