Count the time for a pass to ReleaseMemory against that pass. Not doing this
was under accounting for the time that livevariables cost llvm-svn: 30060
This commit is contained in:
parent
bcb301c4a2
commit
5e02f4e141
|
@ -670,7 +670,9 @@ private:
|
||||||
for (std::vector<Pass*>::iterator I = DeadPass.begin(),E = DeadPass.end();
|
for (std::vector<Pass*>::iterator I = DeadPass.begin(),E = DeadPass.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
PMDebug::PrintPassInformation(getDepth()+1, "Freeing Pass", *I, M);
|
PMDebug::PrintPassInformation(getDepth()+1, "Freeing Pass", *I, M);
|
||||||
|
if (TheTimeInfo) TheTimeInfo->passStarted(*I);
|
||||||
(*I)->releaseMemory();
|
(*I)->releaseMemory();
|
||||||
|
if (TheTimeInfo) TheTimeInfo->passEnded(*I);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (std::map<AnalysisID, Pass*>::iterator I = CurrentAnalyses.begin();
|
for (std::map<AnalysisID, Pass*>::iterator I = CurrentAnalyses.begin();
|
||||||
|
|
Loading…
Reference in New Issue