Measure timings.

llvm-svn: 33627
This commit is contained in:
Devang Patel 2007-01-29 20:08:03 +00:00
parent 55bcb50840
commit 5a4a315aed
1 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,8 @@ bool CGPassManager::runOnModule(Module &M) {
initializeAnalysisImpl(P); initializeAnalysisImpl(P);
// if (TheTimeInfo) TheTimeInfo->passStarted(P); TimingInfo *TheTimeInfo = llvm::getTheTimeInfo();
if (TheTimeInfo) TheTimeInfo->passStarted(P);
if (CallGraphSCCPass *CGSP = dynamic_cast<CallGraphSCCPass *>(P)) if (CallGraphSCCPass *CGSP = dynamic_cast<CallGraphSCCPass *>(P))
Changed |= CGSP->runOnSCC(*I); // TODO : What if CG is changed ? Changed |= CGSP->runOnSCC(*I); // TODO : What if CG is changed ?
else { else {
@ -107,7 +108,7 @@ bool CGPassManager::runOnModule(Module &M) {
Changed |= FPP->runOnFunction(*F); Changed |= FPP->runOnFunction(*F);
} }
} }
// if (TheTimeInfo) TheTimeInfo->passEnded(MP); if (TheTimeInfo) TheTimeInfo->passEnded(P);
if (Changed) if (Changed)
dumpPassInfo(P, Msg3, Msg2); dumpPassInfo(P, Msg3, Msg2);