forked from OSchip/llvm-project
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:
parent
fbeec7270c
commit
2a07fd94f1
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue