[llvm] r176317 - [mips] Rename function findDelayInstr to searchBackward.

Akira Hatanaka ahatanaka at mips.com
Thu Feb 28 16:20:16 PST 2013


Author: ahatanak
Date: Thu Feb 28 18:20:16 2013
New Revision: 176317

URL: http://llvm.org/viewvc/llvm-project?rev=176317&view=rev
Log:
[mips] Rename function findDelayInstr to searchBackward.


Modified:
    llvm/trunk/lib/Target/Mips/MipsDelaySlotFiller.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsDelaySlotFiller.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsDelaySlotFiller.cpp?rev=176317&r1=176316&r2=176317&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsDelaySlotFiller.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsDelaySlotFiller.cpp Thu Feb 28 18:20:16 2013
@@ -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(Mach
 
     // 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::createMipsDelaySlotF
   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());





More information about the llvm-commits mailing list