mi-sched: Don't call MBB.size() in initSUnits. The driver already has instr count.
This fixes a pathological compile time problem with very large blocks and lots of scheduling boundaries. llvm-svn: 189116
This commit is contained in:
@@ -160,7 +160,8 @@ void VLIWPacketizerList::PacketizeMIs(MachineBasicBlock *MBB,
|
||||
MachineBasicBlock::iterator EndItr) {
|
||||
assert(VLIWScheduler && "VLIW Scheduler is not initialized!");
|
||||
VLIWScheduler->startBlock(MBB);
|
||||
VLIWScheduler->enterRegion(MBB, BeginItr, EndItr, MBB->size());
|
||||
VLIWScheduler->enterRegion(MBB, BeginItr, EndItr,
|
||||
std::distance(BeginItr, EndItr));
|
||||
VLIWScheduler->schedule();
|
||||
|
||||
// Generate MI -> SU map.
|
||||
|
||||
Reference in New Issue
Block a user