Added -view-misched=dags options.

llvm-svn: 152178
This commit is contained in:
Andrew Trick 2012-03-07 00:18:25 +00:00
parent 1b2324d0e8
commit a5f19560fb
1 changed files with 9 additions and 0 deletions

View File

@ -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);