projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68226a4
)
Fix a regression from r138445. If we're loading from the frame/base pointer
author
Chad Rosier
<mcrosier@apple.com>
Mon, 10 Oct 2011 01:03:35 +0000
(
01:03
+0000)
committer
Chad Rosier
<mcrosier@apple.com>
Mon, 10 Oct 2011 01:03:35 +0000
(
01:03
+0000)
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
lib/Target/ARM/Thumb1RegisterInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/Thumb1RegisterInfo.cpp
b/lib/Target/ARM/Thumb1RegisterInfo.cpp
index d6b03778096761268090e898b6f87a400ab6eb44..e8ed482a66faeb640a82625343ccb3575e904240 100644
(file)
--- a/
lib/Target/ARM/Thumb1RegisterInfo.cpp
+++ b/
lib/Target/ARM/Thumb1RegisterInfo.cpp
@@
-454,6
+454,7
@@
rewriteFrameIndex(MachineBasicBlock::iterator II, unsigned FrameRegIdx,
// 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));