If a node has more than 64 outgoing edges, make the edges go from the 'truncated...
authorChris Lattner <sabre@nondot.org>
Wed, 11 Feb 2004 20:44:17 +0000 (20:44 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 11 Feb 2004 20:44:17 +0000 (20:44 +0000)
instead of dropping them entirely.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11334 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/GraphWriter.h
include/llvm/Support/GraphWriter.h

index 0eace78d73fa2fdad04364286b352dd7072b2e28..c6a5c3cdc94b2f871dff95a5a837c744a4998c2c 100644 (file)
@@ -117,7 +117,7 @@ public:
       }
       
       if (EI != EE)
-        O << "|truncated...";
+        O << "|<g64>truncated...";
       O << "}";
     }
     O << "}\"];\n";   // Finish printing the "node" line
@@ -126,6 +126,8 @@ public:
     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) {
index 0eace78d73fa2fdad04364286b352dd7072b2e28..c6a5c3cdc94b2f871dff95a5a837c744a4998c2c 100644 (file)
@@ -117,7 +117,7 @@ public:
       }
       
       if (EI != EE)
-        O << "|truncated...";
+        O << "|<g64>truncated...";
       O << "}";
     }
     O << "}\"];\n";   // Finish printing the "node" line
@@ -126,6 +126,8 @@ public:
     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) {