From: Chris Lattner Date: Sat, 2 Sep 2006 23:09:24 +0000 (+0000) Subject: Count the time for a pass to ReleaseMemory against that pass. Not doing this X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1c57be4a405bf6fbad93a0e3b28c5dbd0276a0dd;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/PassManagerT.h b/lib/VMCore/PassManagerT.h index 47d72f10493..3b1b9116189 100644 --- a/lib/VMCore/PassManagerT.h +++ b/lib/VMCore/PassManagerT.h @@ -670,7 +670,9 @@ private: for (std::vector::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::iterator I = CurrentAnalyses.begin();