diff options
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))  | 

