From cc2037be2cf0159e9f7a917a4db434258fe6eb6b Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 15 Feb 2012 23:21:33 +0000 Subject: Make LiveIntervals::handleMove() bundle aware. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150630 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineInstr.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/CodeGen/MachineInstr.cpp') diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index ff32a66b14..52a90960ec 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -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(); -- cgit v1.2.3