diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-01-19 00:46:06 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-01-19 00:46:06 +0000 |
commit | 2879467d4ea75c651b2e877a27386a71eb102f86 (patch) | |
tree | da6fe641bbfaf3298fcae037503979b7ed9045f7 /llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp | |
parent | ecc0084f72de81180ef09b74c8207b1f86ad38fc (diff) | |
download | bcm5719-llvm-2879467d4ea75c651b2e877a27386a71eb102f86.tar.gz bcm5719-llvm-2879467d4ea75c651b2e877a27386a71eb102f86.zip |
- Slight change to finalizeBundle() interface. LastMI is not exclusive (pointing
to instruction right after the last instruction in the bundle.
- Add a finalizeBundle() variant that doesn't specify LastMI. Instead, the code
will find the last instruction in the bundle by following the 'InsideBundle'
marker. This is useful in case bundles are formed early (i.e. during MI
scheduling) but finalized later (i.e. after register allocator has finished
rewriting virtual registers with physical registers).
llvm-svn: 148444
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp b/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp index 6c4bb96835a..b13ab216c3d 100644 --- a/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp +++ b/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp @@ -239,7 +239,8 @@ bool Thumb2ITBlockPass::InsertITInstructions(MachineBasicBlock &MBB) { LastITMI->findRegisterUseOperand(ARM::ITSTATE)->setIsKill(); // Finalize the bundle. - finalizeBundle(MBB, InsertPos.getInstrIterator(), LastITMI); + MachineBasicBlock::instr_iterator LI = LastITMI; + finalizeBundle(MBB, InsertPos.getInstrIterator(), llvm::next(LI)); Modified = true; ++NumITs; |