diff options
author | Devang Patel <dpatel@apple.com> | 2007-01-29 20:08:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-01-29 20:08:03 +0000 |
commit | 5a4a315aedab20040357320214ed2234f6f752eb (patch) | |
tree | d3cbe19955c8c887b93371b7dd9d746d17467ef4 /llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | |
parent | 55bcb50840526f6cc1d3632e2c989a01ce1b5fcb (diff) | |
download | bcm5719-llvm-5a4a315aedab20040357320214ed2234f6f752eb.tar.gz bcm5719-llvm-5a4a315aedab20040357320214ed2234f6f752eb.zip |
Measure timings.
llvm-svn: 33627
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp index e8d2ab47e6c..3876ec9adf8 100644 --- a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -92,7 +92,8 @@ bool CGPassManager::runOnModule(Module &M) { initializeAnalysisImpl(P); - // if (TheTimeInfo) TheTimeInfo->passStarted(P); + TimingInfo *TheTimeInfo = llvm::getTheTimeInfo(); + if (TheTimeInfo) TheTimeInfo->passStarted(P); if (CallGraphSCCPass *CGSP = dynamic_cast<CallGraphSCCPass *>(P)) Changed |= CGSP->runOnSCC(*I); // TODO : What if CG is changed ? else { @@ -107,7 +108,7 @@ bool CGPassManager::runOnModule(Module &M) { Changed |= FPP->runOnFunction(*F); } } - // if (TheTimeInfo) TheTimeInfo->passEnded(MP); + if (TheTimeInfo) TheTimeInfo->passEnded(P); if (Changed) dumpPassInfo(P, Msg3, Msg2); |