diff options
author | Matthias Braun <matze@braunis.de> | 2015-09-17 21:09:59 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-09-17 21:09:59 +0000 |
commit | d78ee54a54fc77aa139cf987870e8a194e7a2dd3 (patch) | |
tree | 14567e9365d17a17549713fbfd6b9f2a544d7f12 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | c7d5c94f78c71d7369c5e3a55daf4d819943c15b (diff) | |
download | bcm5719-llvm-d78ee54a54fc77aa139cf987870e8a194e7a2dd3.tar.gz bcm5719-llvm-d78ee54a54fc77aa139cf987870e8a194e7a2dd3.zip |
MachineScheduler: Provide an option for node hiding cutoff and disable it by default
llvm-svn: 247942
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 7cff5d12238..bc89b134f85 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -49,6 +49,11 @@ DumpCriticalPathLength("misched-dcpl", cl::Hidden, static cl::opt<bool> ViewMISchedDAGs("view-misched-dags", cl::Hidden, cl::desc("Pop up a window to show MISched dags after they are processed")); +/// In some situations a few uninteresting nodes depend on nearly all other +/// nodes in the graph, provide a cutoff to hide them. +static cl::opt<unsigned> ViewMISchedCutoff("view-misched-cutoff", cl::Hidden, + cl::desc("Hide nodes with more predecessor/successor than cutoff")); + static cl::opt<unsigned> MISchedCutoff("misched-cutoff", cl::Hidden, cl::desc("Stop scheduling after N instructions"), cl::init(~0U)); @@ -3278,7 +3283,10 @@ struct DOTGraphTraits<ScheduleDAGMI*> : public DefaultDOTGraphTraits { } static bool isNodeHidden(const SUnit *Node) { - return (Node->Preds.size() > 10 || Node->Succs.size() > 10); + if (ViewMISchedCutoff == 0) + return false; + return (Node->Preds.size() > ViewMISchedCutoff + || Node->Succs.size() > ViewMISchedCutoff); } static bool hasNodeAddressLabel(const SUnit *Node, |