diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-12-07 04:23:40 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-12-07 04:23:40 +0000 |
commit | 06180bf3f25f2a9828e4c39f63a883aaa6c9452d (patch) | |
tree | 9ac880b2152aca31c895d048865961373626c904 /lib/Target/Mips/MipsDelaySlotFiller.cpp | |
parent | c8ce7a4bb58b9078e1ea0e362b3935f4de501e8f (diff) |
Use the new MIBundleBuilder class in the Mips target.
This is the preferred way of creating bundled machine instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsDelaySlotFiller.cpp')
-rw-r--r-- | lib/Target/Mips/MipsDelaySlotFiller.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Mips/MipsDelaySlotFiller.cpp b/lib/Target/Mips/MipsDelaySlotFiller.cpp index d055afa3d1..041a9d076a 100644 --- a/lib/Target/Mips/MipsDelaySlotFiller.cpp +++ b/lib/Target/Mips/MipsDelaySlotFiller.cpp @@ -112,7 +112,7 @@ runOnMachineBasicBlock(MachineBasicBlock &MBB) { if (I->hasDelaySlot()) { ++FilledSlots; Changed = true; - + InstrIter InstrWithSlot = I; InstrIter D; // Delay slot filling is disabled at -O0. @@ -127,9 +127,9 @@ runOnMachineBasicBlock(MachineBasicBlock &MBB) { // The instruction after it will be visited in the next iteration. LastFiller = ++I; - // Set InsideBundle bit so that the machine verifier doesn't expect this - // instruction to be a terminator. - LastFiller->setIsInsideBundle(); + // Bundle the delay slot filler to InstrWithSlot so that the machine + // verifier doesn't expect this instruction to be a terminator. + MIBundleBuilder(MBB, InstrWithSlot, llvm::next(LastFiller)); } return Changed; |