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
This commit is contained in:
Bill Wendling 2010-12-16 00:49:54 +00:00
parent c435653998
commit 637813a258
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}