[llvm-commits] CVS: llvm/lib/Target/ARM/ARMInstrInfo.cpp ARMLoadStoreOptimizer.cpp
Evan Cheng
evan.cheng at apple.com
Thu Apr 26 12:00:52 PDT 2007
Changes in directory llvm/lib/Target/ARM:
ARMInstrInfo.cpp updated: 1.21 -> 1.22
ARMLoadStoreOptimizer.cpp updated: 1.7 -> 1.8
---
Log message:
Rename findRegisterUseOperand to findRegisterUseOperandIdx to avoid confusion.
---
Diffs of the changes: (+2 -2)
ARMInstrInfo.cpp | 2 +-
ARMLoadStoreOptimizer.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/ARM/ARMInstrInfo.cpp
diff -u llvm/lib/Target/ARM/ARMInstrInfo.cpp:1.21 llvm/lib/Target/ARM/ARMInstrInfo.cpp:1.22
--- llvm/lib/Target/ARM/ARMInstrInfo.cpp:1.21 Wed Apr 25 02:12:13 2007
+++ llvm/lib/Target/ARM/ARMInstrInfo.cpp Thu Apr 26 14:00:32 2007
@@ -278,7 +278,7 @@
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);
Index: llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
diff -u llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp:1.7 llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp:1.8
--- llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp:1.7 Mon Mar 26 17:41:48 2007
+++ llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp Thu Apr 26 14:00:32 2007
@@ -221,7 +221,7 @@
}
}
- 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) {
More information about the llvm-commits
mailing list