Re: [PATCH][AArch64] Use contains_mem_rtx_p to detect memory sub-rtxes

2017-02-13 Thread Kyrill Tkachov
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 tha

[PATCH][AArch64] Use contains_mem_rtx_p to detect memory sub-rtxes

2017-02-13 Thread Kyrill Tkachov
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)