mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
Measure timings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33627 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b05ef6a8eb
commit
f82aa1cf73
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user