From: Evan Cheng Date: Tue, 3 Apr 2007 06:44:25 +0000 (+0000) Subject: Inverted logic. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3c5ad82ba2b4c1ebbed7f1c4594c245f57ae08e0;p=oota-llvm.git Inverted logic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35619 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMInstrInfo.cpp b/lib/Target/ARM/ARMInstrInfo.cpp index b630fcb1dc2..6058be114ea 100644 --- a/lib/Target/ARM/ARMInstrInfo.cpp +++ b/lib/Target/ARM/ARMInstrInfo.cpp @@ -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))