mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
Count the time for a pass to ReleaseMemory against that pass. Not doing 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
This commit is contained in:
@ -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();
|
||||||
|
Reference in New Issue
Block a user