Skip to content

Commit

Permalink
Count the time for a pass to ReleaseMemory against that pass. Not doi…
Browse files Browse the repository at this point in the history
…ng this

was under accounting for the time that livevariables cost


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30060 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Sep 2, 2006
1 parent 8dfd0f0 commit 1c57be4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/VMCore/PassManagerT.h
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,9 @@ template<typename Trait> class PassManagerT : public AnalysisResolver {
for (std::vector<Pass*>::iterator I = DeadPass.begin(),E = DeadPass.end();
I != E; ++I) {
PMDebug::PrintPassInformation(getDepth()+1, "Freeing Pass", *I, M);
if (TheTimeInfo) TheTimeInfo->passStarted(*I);
(*I)->releaseMemory();
if (TheTimeInfo) TheTimeInfo->passEnded(*I);
}

for (std::map<AnalysisID, Pass*>::iterator I = CurrentAnalyses.begin();
Expand Down

0 comments on commit 1c57be4

Please sign in to comment.