[mips] Fix compact branch hazard detection, part 2
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Thu, 22 Dec 2016 19:29:50 +0000 (19:29 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Thu, 22 Dec 2016 19:29:50 +0000 (19:29 +0000)
commit8a4e63994e32e2cf3d7f0ba6fd99fca4e9268183
tree601b5aed94e8511648d34f821a95b17789b7a934
parent88391248485102a5b1c01f59a1ed9840d91ecddf
[mips] Fix compact branch hazard detection, part 2

Follow up to D27209 fix, this patch now properly handles single transient
instruction in basic block.

Patch by Aleksandar Beserminji.

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

llvm-svn: 290361
llvm/lib/Target/Mips/MipsHazardSchedule.cpp
llvm/test/CodeGen/Mips/compactbranches/unsafe-in-forbidden-slot.ll [new file with mode: 0644]