mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
getNodes() is gone, use node_begin/end instead
Rename stats from dsnode -> dsa Add a new stat git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -30,8 +30,8 @@ using namespace llvm;
|
||||
namespace {
|
||||
cl::opt<bool> OnlyPrintMain("only-print-main-ds", cl::ReallyHidden);
|
||||
cl::opt<bool> DontPrintAnything("dont-print-ds", cl::ReallyHidden);
|
||||
Statistic<> MaxGraphSize ("dsnode", "Maximum graph size");
|
||||
Statistic<> NumFoldedNodes ("dsnode", "Number of folded nodes (in final graph)");
|
||||
Statistic<> MaxGraphSize ("dsa", "Maximum graph size");
|
||||
Statistic<> NumFoldedNodes ("dsa", "Number of folded nodes (in final graph)");
|
||||
}
|
||||
|
||||
void DSNode::dump() const { print(std::cerr, 0); }
|
||||
@@ -249,10 +249,12 @@ static void printCollection(const Collection &C, std::ostream &O,
|
||||
<< Gr.getGraphSize() << "+" << NumCalls << "]\n";
|
||||
}
|
||||
|
||||
if (MaxGraphSize < Gr.getNodes().size())
|
||||
MaxGraphSize = Gr.getNodes().size();
|
||||
for (unsigned i = 0, e = Gr.getNodes().size(); i != e; ++i)
|
||||
if (Gr.getNodes()[i]->isNodeCompletelyFolded())
|
||||
unsigned GraphSize = std::distance(Gr.node_begin(), Gr.node_end());
|
||||
if (MaxGraphSize < GraphSize) MaxGraphSize = GraphSize;
|
||||
|
||||
for (DSGraph::node_iterator NI = Gr.node_begin(), E = Gr.node_end();
|
||||
NI != E; ++NI)
|
||||
if ((*NI)->isNodeCompletelyFolded())
|
||||
++NumFoldedNodes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user