CodeGen: Make MachineBasicBlock::back skip to the beginning of the last bundle.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 24 May 2014 13:13:17 +0000 (13:13 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 24 May 2014 13:13:17 +0000 (13:13 +0000)
commit9d934aca341a87abdbc80098c7197ba180d01d01
tree8fc57c88806259143d8f755251bbec41e64f08b9
parent29f94c72014eaa5d0d3b920686e689e79759cacb
CodeGen: Make MachineBasicBlock::back skip to the beginning of the last bundle.

This makes front/back symmetric with begin/end, avoiding some confusion.
Added instr_front/instr_back for the old behavior, corresponding to
instr_begin/instr_end. Audited all three in-tree users of back(), all
of them look like they don't want to look inside bundles.

Fixes an assertion (PR19815) when generating debug info on mips, where a
delay slot was bundled at the end of a branch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209580 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineBasicBlock.h
lib/CodeGen/MachineVerifier.cpp
test/DebugInfo/Mips/delay-slot.ll [new file with mode: 0644]
test/DebugInfo/Mips/lit.local.cfg [new file with mode: 0644]