Re: [RS6000] Remove unnecessary rtx_equal_p

2018-11-13 Thread Segher Boessenkool
On Tue, Nov 13, 2018 at 02:16:09PM +1030, Alan Modra wrote: > REGs are unique. This patch recognizes that fact, speeding up rs6000 > gcc infinitesimally. Bootstrapped etc. powerpc64le-linux. OK? Of course, fine for trunk. Thanks! Segher > * gcc/config/rs6000/rs6000.c (rs6000_legitima

Re: [RS6000] Remove unnecessary rtx_equal_p

2018-11-12 Thread Alan Modra
On Tue, Nov 13, 2018 at 02:16:09PM +1030, Alan Modra wrote: > REGs are unique. This patch recognizes that fact, speeding up rs6000 > gcc infinitesimally. Bootstrapped etc. powerpc64le-linux. OK? Ugh, looking over this old patch again, I don't see how I can claim that regs in pre_inc/pre_dec/pre

[RS6000] Remove unnecessary rtx_equal_p

2018-11-12 Thread Alan Modra
REGs are unique. This patch recognizes that fact, speeding up rs6000 gcc infinitesimally. Bootstrapped etc. powerpc64le-linux. OK? * gcc/config/rs6000/rs6000.c (rs6000_legitimate_address_p): Replace rtx_equal_p call for known REGs with pointer comparison. (rs6000_seconda