1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[mips] Rename function findDelayInstr to searchBackward.

llvm-svn: 176317
This commit is contained in:
Akira Hatanaka 2013-03-01 00:20:16 +00:00
parent 811a199b6a
commit 99e76c0e98

View File

@ -129,7 +129,7 @@ namespace {
bool delayHasHazard(const MachineInstr &Candidate, RegDefsUses &RegDU, bool delayHasHazard(const MachineInstr &Candidate, RegDefsUses &RegDU,
MemDefsUses &MemDU) const; MemDefsUses &MemDU) const;
bool findDelayInstr(MachineBasicBlock &MBB, Iter slot, Iter &Filler) const; bool searchBackward(MachineBasicBlock &MBB, Iter Slot, Iter &Filler) const;
bool terminateSearch(const MachineInstr &Candidate) const; bool terminateSearch(const MachineInstr &Candidate) const;
@ -293,7 +293,7 @@ bool Filler::runOnMachineBasicBlock(MachineBasicBlock &MBB) {
// Delay slot filling is disabled at -O0. // Delay slot filling is disabled at -O0.
if (!DisableDelaySlotFiller && (TM.getOptLevel() != CodeGenOpt::None) && if (!DisableDelaySlotFiller && (TM.getOptLevel() != CodeGenOpt::None) &&
findDelayInstr(MBB, I, D)) { searchBackward(MBB, I, D)) {
MBB.splice(llvm::next(I), &MBB, D); MBB.splice(llvm::next(I), &MBB, D);
++UsefulSlots; ++UsefulSlots;
} else } else
@ -312,7 +312,7 @@ FunctionPass *llvm::createMipsDelaySlotFillerPass(MipsTargetMachine &tm) {
return new Filler(tm); return new Filler(tm);
} }
bool Filler::findDelayInstr(MachineBasicBlock &MBB, Iter Slot, bool Filler::searchBackward(MachineBasicBlock &MBB, Iter Slot,
Iter &Filler) const { Iter &Filler) const {
RegDefsUses RegDU(TM); RegDefsUses RegDU(TM);
MemDefsUses MemDU(MBB.getParent()->getFrameInfo()); MemDefsUses MemDU(MBB.getParent()->getFrameInfo());