[llvm-commits] [llvm] r170384 - in /llvm/trunk: include/llvm/CodeGen/MachineBasicBlock.h include/llvm/CodeGen/MachineInstr.h lib/CodeGen/MachineBasicBlock.cpp lib/CodeGen/MachineInstr.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Jan 3 12:56:03 PST 2013

On Jan 3, 2013, at 11:20 AM, Sergei Larin <slarin at codeaurora.org> wrote:

> Jakob,
>  What is supposed to happen in 
> MachineBasicBlock::instr_iterator
> MachineBasicBlock::erase(MachineBasicBlock::instr_iterator I)
> If it is "given" a bundle header itself?

The header is erased, and the next instruction in the bundle becomes the header.

Part of the reason for these changes is to make the instruction/bundle sequence independent of the special BUNDLE instruction. A bundle of instructions is not required to be headed by a BUNDLE instruction, any sequence of instructions can be bundled together.


More information about the llvm-commits mailing list