-view-misched-dags, better pruning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2013-09-04 21:00:18 +00:00
parent ee5fd9cf10
commit da9f441854

View File

@ -3010,7 +3010,7 @@ struct DOTGraphTraits<ScheduleDAGMI*> : public DefaultDOTGraphTraits {
} }
static bool isNodeHidden(const SUnit *Node) { static bool isNodeHidden(const SUnit *Node) {
return (Node->NumPreds > 10 || Node->NumSuccs > 10); return (Node->Preds.size() > 10 || Node->Succs.size() > 10);
} }
static bool hasNodeAddressLabel(const SUnit *Node, static bool hasNodeAddressLabel(const SUnit *Node,