mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Mark the LDR instruction with isReMaterializable, as it is rematerializable
when loading from an invariant memory location. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83688 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -756,7 +756,7 @@ let isBranch = 1, isTerminator = 1 in {
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Load
|
// Load
|
||||||
let canFoldAsLoad = 1 in
|
let canFoldAsLoad = 1, isReMaterializable = 1 in
|
||||||
def LDR : AI2ldw<(outs GPR:$dst), (ins addrmode2:$addr), LdFrm, IIC_iLoadr,
|
def LDR : AI2ldw<(outs GPR:$dst), (ins addrmode2:$addr), LdFrm, IIC_iLoadr,
|
||||||
"ldr", " $dst, $addr",
|
"ldr", " $dst, $addr",
|
||||||
[(set GPR:$dst, (load addrmode2:$addr))]>;
|
[(set GPR:$dst, (load addrmode2:$addr))]>;
|
||||||
|
Reference in New Issue
Block a user