Inverted logic.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 3 Apr 2007 06:44:25 +0000 (06:44 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 3 Apr 2007 06:44:25 +0000 (06:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35619 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrInfo.cpp

index b630fcb1dc26ca4b115fcbc215d3a0e7387774ce..6058be114ea7cd7157a3184c7b8cdabb29f6e4ae 100644 (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))