Add pseudo instructions to the XCore for (load|store|load address) of a
authorRichard Osborne <richard@xmos.com>
Wed, 14 Jan 2009 18:26:46 +0000 (18:26 +0000)
committerRichard Osborne <richard@xmos.com>
Wed, 14 Jan 2009 18:26:46 +0000 (18:26 +0000)
commit29cab5f0ee477f86d305ed080d61c17ff64b602f
tree81ece34cef6a101e74587a68b3a682a97ec3d9ff
parenta8c78a9e89afcca4f003c55bcdbd41a23ecd5c8d
Add pseudo instructions to the XCore for (load|store|load address) of a
frame index. eliminateFrameIndex will replace these instructions with
(LDWSP|STWSP|LDAWSP) or (LDW|STW|LDAWF) if a frame pointer is in use.

This fixes PR 3324. Previously we used LDWSP, STWSP, LDAWSP before frame
pointer elimination. However since they were marked as implicitly using
SP they could not be rematerialised.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62238 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/XCore/XCoreInstrInfo.cpp
lib/Target/XCore/XCoreInstrInfo.td
lib/Target/XCore/XCoreRegisterInfo.cpp
test/CodeGen/XCore/2009-01-14-Remat-Crash.ll [new file with mode: 0644]