diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-01 00:20:16 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-01 00:20:16 +0000 |
| commit | 50e174d95de6932ea1a99c241167af37df2cec6e (patch) | |
| tree | d5d9e751077b6a80a1b95319825483acc2ebfb1e /llvm/lib/Target | |
| parent | f9669beacd83ededd87b2ccdd5c4cdfa397ea714 (diff) | |
| download | bcm5719-llvm-50e174d95de6932ea1a99c241167af37df2cec6e.tar.gz bcm5719-llvm-50e174d95de6932ea1a99c241167af37df2cec6e.zip | |
[mips] Rename function findDelayInstr to searchBackward.
llvm-svn: 176317
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp index c5558eb9cff..2762e2542dc 100644 --- a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp +++ b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp @@ -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()); |

