[mips] Deal with empty blocks in the mips hazard scheduler
authorSimon Dardis <simon.dardis@imgtec.com>
Tue, 4 Apr 2017 11:28:53 +0000 (11:28 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Tue, 4 Apr 2017 11:28:53 +0000 (11:28 +0000)
commit0a47edb1539f6beaef49918ee3fbd7b28456f2d8
treec8547ae3631f853ee1b92ef907f930676ca27de2
parentd7f151289733c1a659401adeb02a61b69c09b280
[mips] Deal with empty blocks in the mips hazard scheduler

This patch teaches the hazard scheduler how to handle empty blocks
when search for the next real instruction when dealing with forbidden
slots.

Reviewers: slthakur

Differential Revision: https://reviews.llvm.org/D31293

llvm-svn: 299427
llvm/lib/Target/Mips/MipsHazardSchedule.cpp
llvm/test/CodeGen/Mips/compactbranches/empty-block.mir [new file with mode: 0644]