Index: llvm/lib/Target/MSP430/MSP430FrameLowering.cpp =================================================================== --- llvm/lib/Target/MSP430/MSP430FrameLowering.cpp +++ llvm/lib/Target/MSP430/MSP430FrameLowering.cpp @@ -88,18 +88,15 @@ if (NumBytes) { // adjust stack pointer: SP -= numbytes // If there is an SUB16ri of SP immediately before this instruction, merge // the two. - //NumBytes -= mergeSPUpdates(MBB, MBBI, true); // If there is an ADD16ri or SUB16ri of SP immediately after this // instruction, merge the two instructions. // mergeSPUpdatesDown(MBB, MBBI, &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(); } }