[llvm-commits] [llvm] r142111 - /llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
Benjamin Kramer
benny.kra at googlemail.com
Sun Oct 16 02:32:17 PDT 2011
On 16.10.2011, at 08:38, Cameron Zwarich wrote:
> Author: zwarich
> Date: Sun Oct 16 01:38:10 2011
> New Revision: 142111
>
> URL: http://llvm.org/viewvc/llvm-project?rev=142111&view=rev
> Log:
> Add flags on Thumb2 indexed stores paralleling the flags on the indexed loads.
> These missing flags show up as errors when running -verify-coalescing on
> test-suite.
>
> Modified:
> llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
>
> Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td?rev=142111&r1=142110&r2=142111&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td (original)
> +++ llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td Sun Oct 16 01:38:10 2011
> @@ -1321,6 +1321,8 @@
> IIC_iStore_d_r, "strd", "\t$Rt, $Rt2, $addr", "", []>;
>
> // Indexed stores
> +
> +let mayStore = 1, neverHasSideEffects = 1 in {
> def t2STR_PRE : T2Ipreldst<0, 0b10, 0, 1, (outs GPRnopc:$Rn_wb),
> (ins rGPR:$Rt, t2addrmode_imm8:$addr),
> AddrModeT2_i8, IndexModePre, IIC_iStore_iu,
> @@ -1397,7 +1399,7 @@
> [(set GPRnopc:$Rn_wb,
> (pre_truncsti16 rGPR:$Rt, GPRnopc:$Rn, t2am_imm8_offset:$offset))]>;
> }
> -
> +} // mayStore = 1, neverHasSideEffects = 1
Hi Cameron,
now I get warnings from tblgen:
Warning: mayStore flag explicitly set on instruction 't2STRB_POST' but flag already inferred from pattern.
Warning: neverHasSideEffects set on instruction 't2STRB_POST' which already has a pattern
Warning: mayStore flag explicitly set on instruction 't2STRB_preidx' but flag already inferred from pattern.
Warning: neverHasSideEffects set on instruction 't2STRB_preidx' which already has a pattern
Warning: mayStore flag explicitly set on instruction 't2STRH_POST' but flag already inferred from pattern.
Warning: neverHasSideEffects set on instruction 't2STRH_POST' which already has a pattern
Warning: mayStore flag explicitly set on instruction 't2STRH_preidx' but flag already inferred from pattern.
Warning: neverHasSideEffects set on instruction 't2STRH_preidx' which already has a pattern
Warning: mayStore flag explicitly set on instruction 't2STR_POST' but flag already inferred from pattern.
Warning: neverHasSideEffects set on instruction 't2STR_POST' which already has a pattern
Warning: mayStore flag explicitly set on instruction 't2STR_preidx' but flag already inferred from pattern.
Warning: neverHasSideEffects set on instruction 't2STR_preidx' which already has a pattern
- Ben
More information about the llvm-commits
mailing list