commit | c6ada8e5f38168f13830e448f2b9e2d8e3eac72b | [log] [tgz] |
---|---|---|
author | Andrew Trick <atrick@apple.com> | Fri Jan 25 07:45:25 2013 +0000 |
committer | Andrew Trick <atrick@apple.com> | Fri Jan 25 07:45:25 2013 +0000 |
tree | 4ea636736947bf200b145430436b821c5a4c50f8 | |
parent | a5a73ad15905c18843a8312bb3f20f5c501744de [diff] [blame] |
ScheduleDAG: colorize the DOT graph and improve formatting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173431 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/ScheduleDAGPrinter.cpp b/lib/CodeGen/ScheduleDAGPrinter.cpp index 6c50913..8ddb3e8 100644 --- a/lib/CodeGen/ScheduleDAGPrinter.cpp +++ b/lib/CodeGen/ScheduleDAGPrinter.cpp
@@ -41,6 +41,10 @@ return true; } + static bool isNodeHidden(const SUnit *Node) { + return (Node->NumPreds > 10 || Node->NumSuccs > 10); + } + static bool hasNodeAddressLabel(const SUnit *Node, const ScheduleDAG *Graph) { return true;