mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
[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:
parent
67fade9110
commit
2a817f81d2
@ -212,8 +212,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, Iter Slot) const;
|
||||
RegDefsUses &RegDU, InspectMemInstr &IM, Iter Slot,
|
||||
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.
|
||||
@ -639,8 +639,8 @@ FunctionPass *llvm::createMipsDelaySlotFillerPass(MipsTargetMachine &tm) {
|
||||
|
||||
template<typename IterTy>
|
||||
bool Filler::searchRange(MachineBasicBlock &MBB, IterTy Begin, IterTy End,
|
||||
RegDefsUses &RegDU, InspectMemInstr& IM,
|
||||
IterTy &Filler, Iter Slot) const {
|
||||
RegDefsUses &RegDU, InspectMemInstr& IM, Iter Slot,
|
||||
IterTy &Filler) const {
|
||||
for (IterTy I = Begin; I != End; ++I) {
|
||||
// skip debug value
|
||||
if (I->isDebugValue())
|
||||
@ -693,8 +693,8 @@ bool Filler::searchBackward(MachineBasicBlock &MBB, Iter Slot) const {
|
||||
|
||||
RegDU.init(*Slot);
|
||||
|
||||
if (!searchRange(MBB, ReverseIter(Slot), MBB.rend(), RegDU, MemDU, Filler,
|
||||
Slot))
|
||||
if (!searchRange(MBB, ReverseIter(Slot), MBB.rend(), RegDU, MemDU, Slot,
|
||||
Filler))
|
||||
return false;
|
||||
|
||||
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);
|
||||
|
||||
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;
|
||||
|
||||
MBB.splice(std::next(Slot), &MBB, Filler);
|
||||
@ -757,8 +757,8 @@ bool Filler::searchSuccBBs(MachineBasicBlock &MBB, Iter Slot) const {
|
||||
IM.reset(new MemDefsUses(MFI));
|
||||
}
|
||||
|
||||
if (!searchRange(MBB, SuccBB->begin(), SuccBB->end(), RegDU, *IM, Filler,
|
||||
Slot))
|
||||
if (!searchRange(MBB, SuccBB->begin(), SuccBB->end(), RegDU, *IM, Slot,
|
||||
Filler))
|
||||
return false;
|
||||
|
||||
insertDelayFiller(Filler, BrMap);
|
||||
|
Loading…
Reference in New Issue
Block a user