forked from OSchip/llvm-project
Keep track of how many inlinings are performed
llvm-svn: 7076
This commit is contained in:
parent
d3d5c5c98e
commit
cd7482b354
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> MaxSCC("budatastructure", "Maximum SCC Size in Call Graph");
|
Statistic<> MaxSCC("budatastructure", "Maximum SCC Size in Call Graph");
|
||||||
|
Statistic<> NumBUInlines("budatastructures", "Number of graphs inlined");
|
||||||
|
|
||||||
RegisterAnalysis<BUDataStructures>
|
RegisterAnalysis<BUDataStructures>
|
||||||
X("budatastructure", "Bottom-up Data Structure Analysis");
|
X("budatastructure", "Bottom-up Data Structure Analysis");
|
||||||
|
@ -264,6 +265,7 @@ void BUDataStructures::calculateGraph(DSGraph &Graph) {
|
||||||
Graph.mergeInGraph(CS, *Callee, GI,
|
Graph.mergeInGraph(CS, *Callee, GI,
|
||||||
DSGraph::KeepModRefBits |
|
DSGraph::KeepModRefBits |
|
||||||
DSGraph::StripAllocaBit | DSGraph::DontCloneCallNodes);
|
DSGraph::StripAllocaBit | DSGraph::DontCloneCallNodes);
|
||||||
|
++NumBUInlines;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
Graph.writeGraphToFile(std::cerr, "bu_" + F.getName() + "_after_" +
|
Graph.writeGraphToFile(std::cerr, "bu_" + F.getName() + "_after_" +
|
||||||
|
|
Loading…
Reference in New Issue