mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
[mips] Rename function findDelayInstr to searchBackward.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
838038d3e1
commit
49d58723d2
@ -129,7 +129,7 @@ namespace {
|
||||
bool delayHasHazard(const MachineInstr &Candidate, RegDefsUses &RegDU,
|
||||
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;
|
||||
|
||||
@ -293,7 +293,7 @@ bool Filler::runOnMachineBasicBlock(MachineBasicBlock &MBB) {
|
||||
|
||||
// Delay slot filling is disabled at -O0.
|
||||
if (!DisableDelaySlotFiller && (TM.getOptLevel() != CodeGenOpt::None) &&
|
||||
findDelayInstr(MBB, I, D)) {
|
||||
searchBackward(MBB, I, D)) {
|
||||
MBB.splice(llvm::next(I), &MBB, D);
|
||||
++UsefulSlots;
|
||||
} else
|
||||
@ -312,7 +312,7 @@ FunctionPass *llvm::createMipsDelaySlotFillerPass(MipsTargetMachine &tm) {
|
||||
return new Filler(tm);
|
||||
}
|
||||
|
||||
bool Filler::findDelayInstr(MachineBasicBlock &MBB, Iter Slot,
|
||||
bool Filler::searchBackward(MachineBasicBlock &MBB, Iter Slot,
|
||||
Iter &Filler) const {
|
||||
RegDefsUses RegDU(TM);
|
||||
MemDefsUses MemDU(MBB.getParent()->getFrameInfo());
|
||||
|
Loading…
Reference in New Issue
Block a user