[llvm-commits] CVS: llvm/lib/VMCore/PassManagerT.h

Chris Lattner lattner at cs.uiuc.edu
Sat Sep 2 16:09:38 PDT 2006



Changes in directory llvm/lib/VMCore:

PassManagerT.h updated: 1.68 -> 1.69
---
Log message:

Count the time for a pass to ReleaseMemory against that pass.  Not doing this
was under accounting for the time that livevariables cost


---
Diffs of the changes:  (+2 -0)

 PassManagerT.h |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/VMCore/PassManagerT.h
diff -u llvm/lib/VMCore/PassManagerT.h:1.68 llvm/lib/VMCore/PassManagerT.h:1.69
--- llvm/lib/VMCore/PassManagerT.h:1.68	Sun Aug 27 19:08:25 2006
+++ llvm/lib/VMCore/PassManagerT.h	Sat Sep  2 18:09:24 2006
@@ -670,7 +670,9 @@
     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();






More information about the llvm-commits mailing list