[llvm-commits] [llvm] r85980 - /llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
Bob Wilson
bob.wilson at apple.com
Tue Nov 3 16:26:50 PST 2009
I think CodeGen/Thumb2/machine-licm.ll needs to be updated, too.
On Nov 3, 2009, at 4:00 PM, Evan Cheng wrote:
> Author: evancheng
> Date: Tue Nov 3 18:00:39 2009
> New Revision: 85980
>
> URL: http://llvm.org/viewvc/llvm-project?rev=85980&view=rev
> Log:
> Use ldr.n to workaround a darwin assembler bug.
>
> Modified:
> llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
>
> Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb.td?rev=85980&r1=85979&r2=85980&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/Target/ARM/ARMInstrThumb.td (original)
> +++ llvm/trunk/lib/Target/ARM/ARMInstrThumb.td Tue Nov 3 18:00:39
> 2009
> @@ -326,9 +326,10 @@
> "ldr", "\t$dst, $addr", []>;
>
> // Load tconstpool
> +// FIXME: Use ldr.n to work around a Darwin assembler bug.
> let canFoldAsLoad = 1 in
> def tLDRpci : T1pIs<(outs tGPR:$dst), (ins i32imm:$addr), IIC_iLoadi,
> - "ldr", "\t$dst, $addr",
> + "ldr.n", "\t$dst, $addr",
> [(set tGPR:$dst, (load (ARMWrapper tconstpool:
> $addr)))]>;
>
> // Special LDR for loads from non-pc-relative constpools.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list