diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-01 02:17:02 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-01 02:17:02 +0000 |
| commit | e9e588dd728ad843129e48237aea0c54a14990e7 (patch) | |
| tree | d946bdffca8c7096f4fbaaf522ba3ac039af6424 /llvm/lib/Target/Mips | |
| parent | 8f7bfb39be62428e655068549d83607638ed64e1 (diff) | |
| download | bcm5719-llvm-e9e588dd728ad843129e48237aea0c54a14990e7.tar.gz bcm5719-llvm-e9e588dd728ad843129e48237aea0c54a14990e7.zip | |
[mips] Remove unused option. Fix 80-column violations.
llvm-svn: 176330
Diffstat (limited to 'llvm/lib/Target/Mips')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp index bf6af970b6f..e2655901417 100644 --- a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp +++ b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp @@ -42,13 +42,6 @@ static cl::opt<bool> DisableDelaySlotFiller( cl::desc("Fill all delay slots with NOPs."), cl::Hidden); -// This option can be used to silence complaints by machine verifier passes. -static cl::opt<bool> SkipDelaySlotFiller( - "skip-mips-delay-filler", - cl::init(false), - cl::desc("Skip MIPS' delay slot filling pass."), - cl::Hidden); - static cl::opt<bool> DisableForwardSearch( "disable-mips-df-forward-search", cl::init(true), @@ -165,7 +158,8 @@ namespace { virtual bool hasHazard_(const MachineInstr &MI); /// Update Defs and Uses. Return true if there exist dependences that - /// disqualify the delay slot candidate between V and values in Uses and Defs. + /// disqualify the delay slot candidate between V and values in Uses and + /// Defs. bool updateDefsUses(const Value *V, bool MayStore); /// Get the list of underlying objects of MI's memory operand. @@ -190,9 +184,6 @@ namespace { } bool runOnMachineFunction(MachineFunction &F) { - if (SkipDelaySlotFiller) - return false; - bool Changed = false; for (MachineFunction::iterator FI = F.begin(), FE = F.end(); FI != FE; ++FI) @@ -218,7 +209,8 @@ namespace { /// moved to the delay slot. Returns true on success. template<typename IterTy> bool searchRange(MachineBasicBlock &MBB, IterTy Begin, IterTy End, - RegDefsUses &RegDU, InspectMemInstr &IM, IterTy &Filler) const; + RegDefsUses &RegDU, InspectMemInstr &IM, + IterTy &Filler) const; /// This function searches in the backward direction for an instruction that /// can be moved to the delay slot. Returns true on success. @@ -229,12 +221,12 @@ namespace { bool searchForward(MachineBasicBlock &MBB, Iter Slot) const; /// This function searches MBB's successor blocks for an instruction that - /// can be moved to the delay slot and inserts clones of the instruction into - /// the successor blocks. + /// can be moved to the delay slot and inserts clones of the instruction + /// into the successor blocks. bool searchSuccBBs(MachineBasicBlock &MBB, Iter Slot) const; - /// Pick a successor block of MBB. Return NULL if MBB doesn't have a successor - /// block that is not a landing pad. + /// Pick a successor block of MBB. Return NULL if MBB doesn't have a + /// successor block that is not a landing pad. MachineBasicBlock *selectSuccBB(MachineBasicBlock &B) const; /// This function analyzes MBB and returns an instruction with an unoccupied |

