[Inliner] add inliner stats to new pm version of inliner
Increment existing NumInlined and NumDeleted stats in InlinerPass::run.
llvm-svn: 339682
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp
index 2488527..406dd76 100644
--- a/llvm/lib/Transforms/IPO/Inliner.cpp
+++ b/llvm/lib/Transforms/IPO/Inliner.cpp
@@ -1028,6 +1028,8 @@
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 @@
// And delete the actual function from the module.
M.getFunctionList().erase(DeadF);
+ ++NumDeleted;
}
if (!Changed)