[llvm-commits] [llvm] r141523 - /llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp
Chad Rosier
mcrosier at apple.com
Sun Oct 9 18:03:35 PDT 2011
Author: mcrosier
Date: Sun Oct 9 20:03:35 2011
New Revision: 141523
URL: http://llvm.org/viewvc/llvm-project?rev=141523&view=rev
Log:
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
Modified:
llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp?rev=141523&r1=141522&r2=141523&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp Sun Oct 9 20:03:35 2011
@@ -454,6 +454,7 @@
// r0 = add sp, 255*4
// r0 = add r0, (imm - 255*4)
if (Opcode == ARM::tADDi3) {
+ MI.setDesc(TII.get(Opcode));
removeOperands(MI, FrameRegIdx);
MachineInstrBuilder MIB(&MI);
AddDefaultPred(AddDefaultT1CC(MIB).addReg(FrameReg).addImm(Mask));
More information about the llvm-commits
mailing list