Index: llvm/lib/Target/MSP430/MSP430FrameLowering.cpp =================================================================== --- llvm/lib/Target/MSP430/MSP430FrameLowering.cpp +++ llvm/lib/Target/MSP430/MSP430FrameLowering.cpp @@ -86,20 +86,11 @@ DL = MBBI->getDebugLoc(); 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(); } }