git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152374
91177308-0d34-0410-b5e6-
96231b3b80d8
else dbgs() << "End";
dbgs() << " Remaining: " << RemainingCount << "\n");
- // Inform ScheduleDAGInstrs of the region being scheduled. It calls back
- // to our schedule() method.
+ // Schedule a region: possibly reorder instructions.
Scheduler->schedule();
+
+ // Close the current region.
Scheduler->exitRegion();
// Scheduling has invalidated the current iterator 'I'. Ask the