[Inliner] add inliner stats to new pm version of inliner

Increment existing NumInlined and NumDeleted stats in InlinerPass::run.

llvm-svn: 339682
This commit is contained in:
Fedor Sergeev 2018-08-14 15:19:14 +00:00
parent 19c7e7dab4
commit b55705f6e9
1 changed files with 3 additions and 0 deletions

View File

@ -1028,6 +1028,8 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
DidInline = true;
InlinedCallees.insert(&Callee);
++NumInlined;
emit_inlined_into(ORE, DLoc, Block, Callee, F, *OIC);
// Add any new callsites to defined functions to the worklist.
@ -1154,6 +1156,7 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
// And delete the actual function from the module.
M.getFunctionList().erase(DeadF);
++NumDeleted;
}
if (!Changed)