Fix PR16508.
[oota-llvm.git] / lib / CodeGen / ScheduleDAGPrinter.cpp
index 6c5091394d00ac3299f95245f76e4632fafe4793..8ddb3e892f25787abe3c085fca5b276ff23ab201 100644 (file)
@@ -41,6 +41,10 @@ namespace llvm {
       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;