OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bdeb67
)
[Inliner] add inliner stats to new pm version of inliner
author
Fedor Sergeev
<fedor.sergeev@azul.com>
Tue, 14 Aug 2018 15:19:14 +0000
(15:19 +0000)
committer
Fedor Sergeev
<fedor.sergeev@azul.com>
Tue, 14 Aug 2018 15:19:14 +0000
(15:19 +0000)
Increment existing NumInlined and NumDeleted stats in InlinerPass::run.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339682
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/Inliner.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/Inliner.cpp
b/lib/Transforms/IPO/Inliner.cpp
index
2488527
..
406dd76
100644
(file)
--- a/
lib/Transforms/IPO/Inliner.cpp
+++ b/
lib/Transforms/IPO/Inliner.cpp
@@
-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)