[llvm-commits] [llvm] r121931 - /llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp
Bill Wendling
isanbard at gmail.com
Wed Dec 15 16:49:54 PST 2010
Author: void
Date: Wed Dec 15 18:49:54 2010
New Revision: 121931
URL: http://llvm.org/viewvc/llvm-project?rev=121931&view=rev
Log:
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.
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=121931&r1=121930&r2=121931&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp Wed Dec 15 18:49:54 2010
@@ -356,9 +356,11 @@
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;
}
More information about the llvm-commits
mailing list