Keep track of how many inlinings are performed

llvm-svn: 7076
This commit is contained in:
Chris Lattner 2003-07-02 20:24:42 +00:00
parent d3d5c5c98e
commit cd7482b354
1 changed files with 2 additions and 0 deletions

View File

@ -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_" +