[PATCH][AArch64] Use contains_mem_rtx_p to detect memory sub-rtxes
Kyrill Tkachov
kyrylo.tkachov@foss.arm.com
Mon Feb 13 15:58:00 GMT 2017
On 13/02/17 15:53, Kyrill Tkachov wrote:
> Hi all,
>
> We recently (well, within the last year or two) introduced a general function to detect MEM sub-rtxes in rtlanal.c: contains_mem_rtx_p.
> We can use that in aarch64.c and remove the custom has_memory_op that is defined in the same way (except that it takes an rtx_insn * instead of an rtx).
>
> Bootstrapped and tested on aarch64-none-linux-gnu.
> Committing as obvious.
>
> Thanks,
> Kyrill
>
> 2016-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
>
> * config/aarch64/aarch64.c (has_memory_op): Delete.
> (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
> has_memory_op.
Committed as r245391 with the ChangeLog year fixed to the correct 2017.
Kyrill
More information about the Gcc-patches
mailing list