summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-12-16 00:49:54 +0000
committerBill Wendling <isanbard@gmail.com>2010-12-16 00:49:54 +0000
commit637813a258bde9c284cc488a0bd0d95b9f4c4b9a (patch)
treefce64363015bf877a8f8ee28ccf097ca73a9325e /llvm/lib/Target
parentc435653998f3db839964d139c7cf950ef6c8cfa6 (diff)
downloadbcm5719-llvm-637813a258bde9c284cc488a0bd0d95b9f4c4b9a.tar.gz
bcm5719-llvm-637813a258bde9c284cc488a0bd0d95b9f4c4b9a.zip
Add tSpill and tRestore to the opcodes to replace with tSTRi and tLDRi
respectively. It may be a bug that these opcodes are getting this far into machine code generation. llvm-svn: 121931
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp b/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp
index 4e77bd87cc2..9f917234d13 100644
--- a/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp
+++ b/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp
@@ -356,9 +356,11 @@ static void removeOperands(MachineInstr &MI, unsigned i) {
static unsigned convertToNonSPOpcode(unsigned Opcode) {
switch (Opcode) {
case ARM::tLDRspi:
+ case ARM::tRestore: // FIXME: Should this opcode be here?
return ARM::tLDRi;
case ARM::tSTRspi:
+ case ARM::tSpill: // FIXME: Should this opcode be here?
return ARM::tSTRi;
}
OpenPOWER on IntegriCloud