mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Added -view-misched=dags options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
56b94c52c9
commit
0df7f8821c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user