File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 30
30
31
31
using namespace llvm ;
32
32
33
+ #ifndef NDEBUG
34
+ static cl::opt<bool > ViewMISchedDAGs (" view-misched-dags" , cl::Hidden,
35
+ cl::desc (" Pop up a window to show MISched dags after they are processed" ));
36
+ #else
37
+ static bool ViewMISchedDAGs = false ;
38
+ #endif // NDEBUG
39
+
33
40
// ===----------------------------------------------------------------------===//
34
41
// Machine Instruction Scheduling Pass and Registry
35
42
// ===----------------------------------------------------------------------===//
@@ -205,6 +212,8 @@ void ScheduleTopDownLive::Schedule() {
205
212
DEBUG (for (unsigned su = 0 , e = SUnits.size (); su != e; ++su)
206
213
SUnits[su].dumpAll (this ));
207
214
215
+ if (ViewMISchedDAGs) viewGraph ();
216
+
208
217
// Release any successors of the special Entry node. It is currently unused,
209
218
// but we keep up appearances.
210
219
releaseSuccessors (&EntrySU);
You can’t perform that action at this time.
0 commit comments