[llvm-commits] [llvm] r83688 - /llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
Dan Gohman
gohman at apple.com
Fri Oct 9 16:28:27 PDT 2009
Author: djg
Date: Fri Oct 9 18:28:27 2009
New Revision: 83688
URL: http://llvm.org/viewvc/llvm-project?rev=83688&view=rev
Log:
Mark the LDR instruction with isReMaterializable, as it is rematerializable
when loading from an invariant memory location.
Modified:
llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
Modified: llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrInfo.td?rev=83688&r1=83687&r2=83688&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrInfo.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrInfo.td Fri Oct 9 18:28:27 2009
@@ -756,7 +756,7 @@
//
// Load
-let canFoldAsLoad = 1 in
+let canFoldAsLoad = 1, isReMaterializable = 1 in
def LDR : AI2ldw<(outs GPR:$dst), (ins addrmode2:$addr), LdFrm, IIC_iLoadr,
"ldr", " $dst, $addr",
[(set GPR:$dst, (load addrmode2:$addr))]>;
More information about the llvm-commits
mailing list