Handle bundled terminators in isBlockOnlyReachableByFallthrough.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 12 Jan 2014 19:24:08 +0000 (19:24 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 12 Jan 2014 19:24:08 +0000 (19:24 +0000)
commit2d81106fa01e77996a29704a3d3c31856ddbab70
tree5ce4480855c2ce40c953f3858ce89005f6e90337
parent02a054cd61fa88bf194f153c0d84ce4a0cc70c13
Handle bundled terminators in isBlockOnlyReachableByFallthrough.

Targets like SPARC and MIPS have delay slots and normally bundle the
delay slot instruction with the corresponding terminator.

Teach isBlockOnlyReachableByFallthrough to find any MBB operands on
bundled terminators so SPARC doesn't need to specialize this function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199061 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/Sparc/SparcAsmPrinter.cpp
test/CodeGen/SPARC/missinglabel.ll [new file with mode: 0644]