mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 06:53:53 +00:00
sgefa uses truely huge data structures nodes. Only print part of them if they
are so big llvm-svn: 4035
This commit is contained in:
parent
267eb7dc67
commit
8f603615d8
@ -103,17 +103,22 @@ void DSNode::print(std::ostream &O, const DSGraph *G) const {
|
||||
|
||||
O << "\tNode" << (void*)this << " [ label =\"{" << Caption;
|
||||
|
||||
unsigned Size = getSize();
|
||||
if (Size > 64) Size = 64; // Don't print out HUGE graph nodes!
|
||||
|
||||
if (getSize() != 0) {
|
||||
O << "|{";
|
||||
for (unsigned i = 0; i < getSize(); ++i) {
|
||||
for (unsigned i = 0; i < Size; ++i) {
|
||||
if (i) O << "|";
|
||||
O << "<g" << i << ">" << (int)MergeMap[i];
|
||||
}
|
||||
if (Size != getSize())
|
||||
O << "|truncated...";
|
||||
O << "}";
|
||||
}
|
||||
O << "}\"];\n";
|
||||
|
||||
for (unsigned i = 0; i != getSize(); ++i)
|
||||
for (unsigned i = 0; i != Size; ++i)
|
||||
if (const DSNodeHandle *DSN = getLink(i))
|
||||
writeEdge(O, this, ":g", i, *DSN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user