[mips] Keep the parameter list of Filler::searchRange() consistent. NFC.

Summary:
Move the "Filler" parameter to the end of the parameter list as it is,
conceptually, the only output parameter of that function.

Reviewers: dsanders

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D7726

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231239 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vasileios Kalintiris 2015-03-04 12:37:58 +00:00
parent 67fade9110
commit 2a817f81d2

View File

@ -212,8 +212,8 @@ namespace {
/// moved to the delay slot. Returns true on success. /// moved to the delay slot. Returns true on success.
template<typename IterTy> template<typename IterTy>
bool searchRange(MachineBasicBlock &MBB, IterTy Begin, IterTy End, bool searchRange(MachineBasicBlock &MBB, IterTy Begin, IterTy End,
RegDefsUses &RegDU, InspectMemInstr &IM, RegDefsUses &RegDU, InspectMemInstr &IM, Iter Slot,
IterTy &Filler, Iter Slot) const; IterTy &Filler) const;
/// This function searches in the backward direction for an instruction that /// This function searches in the backward direction for an instruction that
/// can be moved to the delay slot. Returns true on success. /// can be moved to the delay slot. Returns true on success.
@ -639,8 +639,8 @@ FunctionPass *llvm::createMipsDelaySlotFillerPass(MipsTargetMachine &tm) {
template<typename IterTy> template<typename IterTy>
bool Filler::searchRange(MachineBasicBlock &MBB, IterTy Begin, IterTy End, bool Filler::searchRange(MachineBasicBlock &MBB, IterTy Begin, IterTy End,
RegDefsUses &RegDU, InspectMemInstr& IM, RegDefsUses &RegDU, InspectMemInstr& IM, Iter Slot,
IterTy &Filler, Iter Slot) const { IterTy &Filler) const {
for (IterTy I = Begin; I != End; ++I) { for (IterTy I = Begin; I != End; ++I) {
// skip debug value // skip debug value
if (I->isDebugValue()) if (I->isDebugValue())
@ -693,8 +693,8 @@ bool Filler::searchBackward(MachineBasicBlock &MBB, Iter Slot) const {
RegDU.init(*Slot); RegDU.init(*Slot);
if (!searchRange(MBB, ReverseIter(Slot), MBB.rend(), RegDU, MemDU, Filler, if (!searchRange(MBB, ReverseIter(Slot), MBB.rend(), RegDU, MemDU, Slot,
Slot)) Filler))
return false; return false;
MBB.splice(std::next(Slot), &MBB, std::next(Filler).base()); MBB.splice(std::next(Slot), &MBB, std::next(Filler).base());
@ -714,7 +714,7 @@ bool Filler::searchForward(MachineBasicBlock &MBB, Iter Slot) const {
RegDU.setCallerSaved(*Slot); RegDU.setCallerSaved(*Slot);
if (!searchRange(MBB, std::next(Slot), MBB.end(), RegDU, NM, Filler, Slot)) if (!searchRange(MBB, std::next(Slot), MBB.end(), RegDU, NM, Slot, Filler))
return false; return false;
MBB.splice(std::next(Slot), &MBB, Filler); MBB.splice(std::next(Slot), &MBB, Filler);
@ -757,8 +757,8 @@ bool Filler::searchSuccBBs(MachineBasicBlock &MBB, Iter Slot) const {
IM.reset(new MemDefsUses(MFI)); IM.reset(new MemDefsUses(MFI));
} }
if (!searchRange(MBB, SuccBB->begin(), SuccBB->end(), RegDU, *IM, Filler, if (!searchRange(MBB, SuccBB->begin(), SuccBB->end(), RegDU, *IM, Slot,
Slot)) Filler))
return false; return false;
insertDelayFiller(Filler, BrMap); insertDelayFiller(Filler, BrMap);