projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e078d1a
)
Use StartPassTimer() and StopPassManager()
author
Devang Patel
<dpatel@apple.com>
Mon, 29 Jan 2007 23:29:54 +0000
(23:29 +0000)
committer
Devang Patel
<dpatel@apple.com>
Mon, 29 Jan 2007 23:29:54 +0000
(23:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33640
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/CallGraphSCCPass.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/CallGraphSCCPass.cpp
b/lib/Analysis/IPA/CallGraphSCCPass.cpp
index 3876ec9adf848d5b90a532984018d9f5ecdfda84..ad3794aee9a7b16e2c74bceb960f9c8ea89cb7c5 100644
(file)
--- a/
lib/Analysis/IPA/CallGraphSCCPass.cpp
+++ b/
lib/Analysis/IPA/CallGraphSCCPass.cpp
@@
-92,8
+92,7
@@
bool CGPassManager::runOnModule(Module &M) {
initializeAnalysisImpl(P);
- TimingInfo *TheTimeInfo = llvm::getTheTimeInfo();
- if (TheTimeInfo) TheTimeInfo->passStarted(P);
+ StartPassTimer(P);
if (CallGraphSCCPass *CGSP = dynamic_cast<CallGraphSCCPass *>(P))
Changed |= CGSP->runOnSCC(*I); // TODO : What if CG is changed ?
else {
@@
-108,7
+107,7
@@
bool CGPassManager::runOnModule(Module &M) {
Changed |= FPP->runOnFunction(*F);
}
}
-
if (TheTimeInfo) TheTimeInfo->passEnded
(P);
+
StopPassTimer
(P);
if (Changed)
dumpPassInfo(P, Msg3, Msg2);