summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-02 20:24:42 +0000
committerChris Lattner <sabre@nondot.org>2003-07-02 20:24:42 +0000
commitcd7482b354c99c2d4e613bf100eaaa6039ad5018 (patch)
tree0c8cad207190f3f3d695803a43b770a95912c2c2 /llvm/lib/Analysis/DataStructure
parentd3d5c5c98e77a46e041325072e1711ecf8b8298d (diff)
downloadbcm5719-llvm-cd7482b354c99c2d4e613bf100eaaa6039ad5018.tar.gz
bcm5719-llvm-cd7482b354c99c2d4e613bf100eaaa6039ad5018.zip
Keep track of how many inlinings are performed
llvm-svn: 7076
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
-rw-r--r--llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
index c449997e740..e2d6f6f0f42 100644
--- a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
+++ b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
@@ -14,6 +14,7 @@
namespace {
Statistic<> MaxSCC("budatastructure", "Maximum SCC Size in Call Graph");
+ Statistic<> NumBUInlines("budatastructures", "Number of graphs inlined");
RegisterAnalysis<BUDataStructures>
X("budatastructure", "Bottom-up Data Structure Analysis");
@@ -264,6 +265,7 @@ void BUDataStructures::calculateGraph(DSGraph &Graph) {
Graph.mergeInGraph(CS, *Callee, GI,
DSGraph::KeepModRefBits |
DSGraph::StripAllocaBit | DSGraph::DontCloneCallNodes);
+ ++NumBUInlines;
#if 0
Graph.writeGraphToFile(std::cerr, "bu_" + F.getName() + "_after_" +
OpenPOWER on IntegriCloud