summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-03-07 00:18:25 +0000
committerAndrew Trick <atrick@apple.com>2012-03-07 00:18:25 +0000
commita5f19560fb129ed7a85a5b9b3e6a2846f2a040cd (patch)
treecbd8a3945cfa3d24308fa2caba9e262b0072f3f0
parent1b2324d0e8b9cb1b20845862769d53f2b11c9add (diff)
downloadbcm5719-llvm-a5f19560fb129ed7a85a5b9b3e6a2846f2a040cd.tar.gz
bcm5719-llvm-a5f19560fb129ed7a85a5b9b3e6a2846f2a040cd.zip
Added -view-misched=dags options.
llvm-svn: 152178
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 55b931ff80f..5d7dee8e1ee 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -30,6 +30,13 @@
using namespace llvm;
+#ifndef NDEBUG
+static cl::opt<bool> ViewMISchedDAGs("view-misched-dags", cl::Hidden,
+ cl::desc("Pop up a window to show MISched dags after they are processed"));
+#else
+static bool ViewMISchedDAGs = false;
+#endif // NDEBUG
+
//===----------------------------------------------------------------------===//
// Machine Instruction Scheduling Pass and Registry
//===----------------------------------------------------------------------===//
@@ -205,6 +212,8 @@ void ScheduleTopDownLive::Schedule() {
DEBUG(for (unsigned su = 0, e = SUnits.size(); su != e; ++su)
SUnits[su].dumpAll(this));
+ if (ViewMISchedDAGs) viewGraph();
+
// Release any successors of the special Entry node. It is currently unused,
// but we keep up appearances.
releaseSuccessors(&EntrySU);
OpenPOWER on IntegriCloud