diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-03-05 00:59:57 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-05 00:59:57 +0000 |
| commit | 6130f66eaae89f8878590796977678afa8448926 (patch) | |
| tree | 9e0d41836f9fcae91af847f9483fcc3cb0ca780c /lib/Target/ARM/ARMInstrInfo.cpp | |
| parent | 4d519457d1ee72d14d62a5823b03449dc0e3df6e (diff) | |
Refactor code. Remove duplicated functions that basically do the same thing as
findRegisterUseOperandIdx, findRegisterDefOperandIndx. Fix some naming inconsistencies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrInfo.cpp')
| -rw-r--r-- | lib/Target/ARM/ARMInstrInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.cpp b/lib/Target/ARM/ARMInstrInfo.cpp index 30c1742ff7..babee6a43e 100644 --- a/lib/Target/ARM/ARMInstrInfo.cpp +++ b/lib/Target/ARM/ARMInstrInfo.cpp @@ -294,8 +294,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->findRegisterUseOperandIdx(Reg); - if (NIdx == -1) + if (!NewMI->readsRegister(Reg)) continue; LV.addVirtualRegisterKilled(Reg, NewMI); if (VI.removeKill(MI)) |
