[llvm-commits] CVS: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
Devang Patel
dpatel at apple.com
Mon Jan 29 12:08:18 PST 2007
Changes in directory llvm/lib/Analysis/IPA:
CallGraphSCCPass.cpp updated: 1.14 -> 1.15
---
Log message:
Measure timings.
---
Diffs of the changes: (+3 -2)
CallGraphSCCPass.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff -u llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.14 llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.15
--- llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.14 Thu Jan 25 19:08:18 2007
+++ llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp Mon Jan 29 14:08:03 2007
@@ -92,7 +92,8 @@
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 @@
Changed |= FPP->runOnFunction(*F);
}
}
- // if (TheTimeInfo) TheTimeInfo->passEnded(MP);
+ if (TheTimeInfo) TheTimeInfo->passEnded(P);
if (Changed)
dumpPassInfo(P, Msg3, Msg2);
More information about the llvm-commits
mailing list