llvm.org GIT mirror llvm / 29b9d7e
Fix a regression from r138445. If we're loading from the frame/base pointer the tADDrSPi instruction can't be used. Make sure we're updating the opcode to tADDi3 in all cases. rdar://10254707 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141523 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 8 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
453453 // r0 = add sp, 255*4
454454 // r0 = add r0, (imm - 255*4)
455455 if (Opcode == ARM::tADDi3) {
456 MI.setDesc(TII.get(Opcode));
456457 removeOperands(MI, FrameRegIdx);
457458 MachineInstrBuilder MIB(&MI);
458459 AddDefaultPred(AddDefaultT1CC(MIB).addReg(FrameReg).addImm(Mask));