[llvm-commits] CVS: llvm/include/Support/GraphWriter.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 11 14:45:02 PST 2004
Changes in directory llvm/include/Support:
GraphWriter.h updated: 1.18 -> 1.19
---
Log message:
If a node has more than 64 outgoing edges, make the edges go from the 'truncated' block,
instead of dropping them entirely.
---
Diffs of the changes: (+3 -1)
Index: llvm/include/Support/GraphWriter.h
diff -u llvm/include/Support/GraphWriter.h:1.18 llvm/include/Support/GraphWriter.h:1.19
--- llvm/include/Support/GraphWriter.h:1.18 Sun Nov 16 14:21:13 2003
+++ llvm/include/Support/GraphWriter.h Wed Feb 11 14:44:17 2004
@@ -117,7 +117,7 @@
}
if (EI != EE)
- O << "|truncated...";
+ O << "|<g64>truncated...";
O << "}";
}
O << "}\"];\n"; // Finish printing the "node" line
@@ -126,6 +126,8 @@
EI = GTraits::child_begin(Node);
for (unsigned i = 0; EI != EE && i != 64; ++EI, ++i)
writeEdge(Node, i, EI);
+ for (; EI != EE; ++EI)
+ writeEdge(Node, 64, EI);
}
void writeEdge(NodeType *Node, unsigned edgeidx, child_iterator EI) {
More information about the llvm-commits
mailing list