Count the time for a pass to ReleaseMemory against that pass. Not doing this
authorChris Lattner <sabre@nondot.org>
Sat, 2 Sep 2006 23:09:24 +0000 (23:09 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 2 Sep 2006 23:09:24 +0000 (23:09 +0000)
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

lib/VMCore/PassManagerT.h

index 47d72f104933c9e981faee7cd110b3078af474d8..3b1b91161891ec788b395a4f057b0bea19c9f1ad 100644 (file)
@@ -670,7 +670,9 @@ private:
     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();