Clear the Processed set when it is no longer used, and clear the

IVUses list in releaseMemory().

llvm-svn: 91296
This commit is contained in:
Dan Gohman 2009-12-14 17:35:17 +00:00
parent fbeec7270c
commit 2a07fd94f1
1 changed files with 2 additions and 1 deletions

View File

@ -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() {