mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-30 15:45:26 +00:00
Use StartPassTimer() and StopPassManager()
llvm-svn: 33640
This commit is contained in:
parent
6f5d7d292f
commit
3eb643f21e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user