aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-01-29 20:08:03 +0000
committerDevang Patel <dpatel@apple.com>2007-01-29 20:08:03 +0000
commitf82aa1cf73b6cdd0c6713ad365bae1204755ee2f (patch)
tree2f4ec145cd688f3cf333e69ddcc3471a2e0fc273
parentb05ef6a8eb4e06a4c3addb74d7d30eb2150049ea (diff)
Measure timings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33627 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/IPA/CallGraphSCCPass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp
index e8d2ab47e6..3876ec9adf 100644
--- a/lib/Analysis/IPA/CallGraphSCCPass.cpp
+++ b/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);