aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsDelaySlotFiller.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-03-01 00:20:16 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-03-01 00:20:16 +0000
commit49d58723d2f8d4578c07b37cf636a81b8b8a24a5 (patch)
tree4df8b698d858d0b046c59c9a2acdd2d3876c1796 /lib/Target/Mips/MipsDelaySlotFiller.cpp
parent838038d3e16d0c319c94fec246d1141b27e0046a (diff)
downloadexternal_llvm-49d58723d2f8d4578c07b37cf636a81b8b8a24a5.zip
external_llvm-49d58723d2f8d4578c07b37cf636a81b8b8a24a5.tar.gz
external_llvm-49d58723d2f8d4578c07b37cf636a81b8b8a24a5.tar.bz2
[mips] Rename function findDelayInstr to searchBackward.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsDelaySlotFiller.cpp')
-rw-r--r--lib/Target/Mips/MipsDelaySlotFiller.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Mips/MipsDelaySlotFiller.cpp b/lib/Target/Mips/MipsDelaySlotFiller.cpp
index c5558eb..2762e25 100644
--- a/lib/Target/Mips/MipsDelaySlotFiller.cpp
+++ b/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());