diff options
author | Jia Liu <proljc@gmail.com> | 2012-02-28 07:46:26 +0000 |
---|---|---|
committer | Jia Liu <proljc@gmail.com> | 2012-02-28 07:46:26 +0000 |
commit | f54f60f3cee6d07fb1bc41321e3d54a7e3011773 (patch) | |
tree | d4fb534ffe1ba91da9c91fa4f9b0c5e1af023770 /llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp | |
parent | 87c7b09d8d7e7f04b720d298a7194c4473a8c524 (diff) | |
download | bcm5719-llvm-f54f60f3cee6d07fb1bc41321e3d54a7e3011773.tar.gz bcm5719-llvm-f54f60f3cee6d07fb1bc41321e3d54a7e3011773.zip |
remove blanks, and some code format
llvm-svn: 151625
Diffstat (limited to 'llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp index df699f86d47..dfc01cd189c 100644 --- a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp +++ b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp @@ -105,7 +105,7 @@ runOnMachineBasicBlock(MachineBasicBlock &MBB) { if (EnableDelaySlotFiller && findDelayInstr(MBB, I, D)) { MBB.splice(llvm::next(I), &MBB, D); ++UsefulSlots; - } else + } else BuildMI(MBB, llvm::next(I), I->getDebugLoc(), TII->get(Mips::NOP)); // Record the filler instruction that filled the delay slot. @@ -173,7 +173,7 @@ bool Filler::delayHasHazard(MachineBasicBlock::iterator candidate, return true; // Loads or stores cannot be moved past a store to the delay slot - // and stores cannot be moved past a load. + // and stores cannot be moved past a load. if (candidate->mayLoad()) { if (sawStore) return true; @@ -220,8 +220,8 @@ void Filler::insertDefsUses(MachineBasicBlock::iterator MI, MCInstrDesc MCID = MI->getDesc(); unsigned e = MI->isCall() || MI->isReturn() ? MCID.getNumOperands() : MI->getNumOperands(); - - // Add RA to RegDefs to prevent users of RA from going into delay slot. + + // Add RA to RegDefs to prevent users of RA from going into delay slot. if (MI->isCall()) RegDefs.insert(Mips::RA); |