Index: llvm/lib/Target/MSP430/MSP430FrameLowering.cpp =================================================================== --- llvm/lib/Target/MSP430/MSP430FrameLowering.cpp +++ llvm/lib/Target/MSP430/MSP430FrameLowering.cpp @@ -92,14 +92,13 @@ // If there is an ADD16ri or SUB16ri of SP immediately after this // instruction, merge the two instructions. // mergeSPUpdatesDown(MBB, MBBI, &NumBytes); + //if (NumBytes) { - if (NumBytes) { - MachineInstr *MI = - BuildMI(MBB, MBBI, DL, TII.get(MSP430::SUB16ri), MSP430::SP) - .addReg(MSP430::SP).addImm(NumBytes); - // The SRW implicit def is dead. - MI->getOperand(3).setIsDead(); - } + MachineInstr *MI = + BuildMI(MBB, MBBI, DL, TII.get(MSP430::SUB16ri), MSP430::SP) + .addReg(MSP430::SP).addImm(NumBytes); + // The SRW implicit def is dead. + MI->getOperand(3).setIsDead(); } }