Inverted logic.

llvm-svn: 35619
This commit is contained in:
Evan Cheng 2007-04-03 06:44:25 +00:00
parent bad40843ec
commit 16696f0ad8

View File

@ -279,7 +279,7 @@ ARMInstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI,
// Look at the two new MI's in reverse order.
MachineInstr *NewMI = NewMIs[j];
int NIdx = NewMI->findRegisterUseOperand(Reg);
if (NIdx != -1)
if (NIdx == -1)
continue;
LV.addVirtualRegisterKilled(Reg, NewMI);
if (VI.removeKill(MI))