diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-04-26 19:00:32 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-04-26 19:00:32 +0000 |
commit | faa510726f4b40aa4495e60e4d341c6467e3fb01 (patch) | |
tree | d0a36cbcc5fdad6cb19ee21bef4c126ece184dad /lib/Target | |
parent | 6bc6333a1059b0ee9b3b7c2685f4daf370ae67bd (diff) | |
download | llvm-faa510726f4b40aa4495e60e4d341c6467e3fb01.tar.gz llvm-faa510726f4b40aa4495e60e4d341c6467e3fb01.tar.bz2 llvm-faa510726f4b40aa4495e60e4d341c6467e3fb01.tar.xz |
Rename findRegisterUseOperand to findRegisterUseOperandIdx to avoid confusion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/ARM/ARMInstrInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.cpp b/lib/Target/ARM/ARMInstrInfo.cpp index 37156c4c10..a5ab09c993 100644 --- a/lib/Target/ARM/ARMInstrInfo.cpp +++ b/lib/Target/ARM/ARMInstrInfo.cpp @@ -278,7 +278,7 @@ ARMInstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI, for (unsigned j = 0; j < 2; ++j) { // Look at the two new MI's in reverse order. MachineInstr *NewMI = NewMIs[j]; - int NIdx = NewMI->findRegisterUseOperand(Reg); + int NIdx = NewMI->findRegisterUseOperandIdx(Reg); if (NIdx == -1) continue; LV.addVirtualRegisterKilled(Reg, NewMI); diff --git a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp index 6dee9c6198..3f8f35016d 100644 --- a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp +++ b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp @@ -221,7 +221,7 @@ ARMLoadStoreOpt::MergeLDR_STR(MachineBasicBlock &MBB, unsigned SIndex, } } - bool BaseKill = Loc->findRegisterUseOperand(Base, true) != -1; + bool BaseKill = Loc->findRegisterUseOperandIdx(Base, true) != -1; if (mergeOps(MBB, ++Loc, SOffset, Base, BaseKill, Opcode,Scratch,Regs, TII)) { Merges.push_back(prior(Loc)); for (unsigned i = SIndex, e = MemOps.size(); i != e; ++i) { |