Make LiveIntervals::handleMove() bundle aware.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150630 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames
2012-02-15 23:21:33 +00:00
parent 2de3ff5043
commit cc2037be2c
3 changed files with 21 additions and 4 deletions

View File

@ -900,6 +900,16 @@ bool MachineInstr::isBundled() const {
return nextMI != Parent->instr_end() && nextMI->isInsideBundle();
}
MachineInstr* MachineInstr::getBundleStart() {
if (!isInsideBundle())
return this;
MachineBasicBlock::reverse_instr_iterator MII(this);
--MII;
while (MII->isInsideBundle())
--MII;
return &*MII;
}
bool MachineInstr::isStackAligningInlineAsm() const {
if (isInlineAsm()) {
unsigned ExtraInfo = getOperand(InlineAsm::MIOp_ExtraInfo).getImm();