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)
commit389cec0d3e09a65b67c2433b545a9dbe030a7c44
treed75326c0a4828d51dae3de06a52fca75f34ba8d1
parent573cbee543154bc17648f9428cb235886e61bc21
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.

llvm-svn: 209580
llvm/include/llvm/CodeGen/MachineBasicBlock.h
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/test/DebugInfo/Mips/delay-slot.ll [new file with mode: 0644]
llvm/test/DebugInfo/Mips/lit.local.cfg [new file with mode: 0644]