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 | 6325446666b4c76f399b3974f8ef1b5092624e2a (patch) | |
| tree | d1ccfe11959e609c91d777fb9903a8709c7ae9ad /llvm/lib/Target/ARM | |
| parent | f9c67f60560a1e63f2741b6c3ed8a093d0f79325 (diff) | |
| download | bcm5719-llvm-6325446666b4c76f399b3974f8ef1b5092624e2a.tar.gz bcm5719-llvm-6325446666b4c76f399b3974f8ef1b5092624e2a.zip | |
Refactor code. Remove duplicated functions that basically do the same thing as
findRegisterUseOperandIdx, findRegisterDefOperandIndx. Fix some naming inconsistencies.
llvm-svn: 47927
Diffstat (limited to 'llvm/lib/Target/ARM')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.cpp b/llvm/lib/Target/ARM/ARMInstrInfo.cpp index 30c1742ff77..babee6a43e7 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.cpp +++ b/llvm/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)) |

