[PATCH] D32432: [Devirtualization] statistic for number of devirtualized calls
Piotr Padlewski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 24 06:42:52 PDT 2017
Prazek created this revision.
https://reviews.llvm.org/D32432
Files:
lib/Analysis/CallGraphSCCPass.cpp
Index: lib/Analysis/CallGraphSCCPass.cpp
===================================================================
--- lib/Analysis/CallGraphSCCPass.cpp
+++ lib/Analysis/CallGraphSCCPass.cpp
@@ -36,7 +36,7 @@
MaxIterations("max-cg-scc-iterations", cl::ReallyHidden, cl::init(4));
STATISTIC(MaxSCCIterations, "Maximum CGSCCPassMgr iterations on one SCC");
-
+STATISTIC(NumDevirtualized, "Number of devirtualized calls");
//===----------------------------------------------------------------------===//
// CGPassManager
//
@@ -301,6 +301,7 @@
// Keep track of whether we turned an indirect call into a direct
// one.
if (!ExistingNode->getFunction()) {
+ NumDevirtualized++;
DevirtualizedCall = true;
DEBUG(dbgs() << " CGSCCPASSMGR: Devirtualized call to '"
<< Callee->getName() << "'\n");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32432.96392.patch
Type: text/x-patch
Size: 900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170424/3d0751b6/attachment.bin>
More information about the llvm-commits
mailing list