diff options
| author | Lang Hames <lhames@gmail.com> | 2012-02-15 23:21:33 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2012-02-15 23:21:33 +0000 |
| commit | 923d199a67350e30f4d38856238383a8261cfbbc (patch) | |
| tree | 1528393b246e8279a8d21b7f4b2e74c256f13927 /llvm/lib/CodeGen/MachineInstr.cpp | |
| parent | 618f97ca21d5319f499a2fe130e957aea2475051 (diff) | |
| download | bcm5719-llvm-923d199a67350e30f4d38856238383a8261cfbbc.tar.gz bcm5719-llvm-923d199a67350e30f4d38856238383a8261cfbbc.zip | |
Make LiveIntervals::handleMove() bundle aware.
llvm-svn: 150630
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index ff32a66b14c..52a90960ec5 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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(); |

