diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-14 17:35:17 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-14 17:35:17 +0000 |
commit | e2f65ee4b17c775f1ea6d44039021dd4750f3322 (patch) | |
tree | 06e00827beee812c758799e16d5e784b01553615 /lib/Analysis/IVUsers.cpp | |
parent | 30844c3950ee869eb430ce718b5a994fabed7aa7 (diff) | |
download | external_llvm-e2f65ee4b17c775f1ea6d44039021dd4750f3322.zip external_llvm-e2f65ee4b17c775f1ea6d44039021dd4750f3322.tar.gz external_llvm-e2f65ee4b17c775f1ea6d44039021dd4750f3322.tar.bz2 |
Clear the Processed set when it is no longer used, and clear the
IVUses list in releaseMemory().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IVUsers.cpp')
-rw-r--r-- | lib/Analysis/IVUsers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index bf40323..627dbbb 100644 --- a/lib/Analysis/IVUsers.cpp +++ b/lib/Analysis/IVUsers.cpp @@ -307,6 +307,7 @@ bool IVUsers::runOnLoop(Loop *l, LPPassManager &LPM) { for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) AddUsersIfInteresting(I); + Processed.clear(); return false; } @@ -369,7 +370,7 @@ void IVUsers::dump() const { void IVUsers::releaseMemory() { IVUsesByStride.clear(); StrideOrder.clear(); - Processed.clear(); + IVUses.clear(); } void IVStrideUse::deleted() { |