This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RS6000] Remove unnecessary rtx_equal_p
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Alan Modra <amodra at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 13 Nov 2018 06:07:01 -0600
- Subject: Re: [RS6000] Remove unnecessary rtx_equal_p
- References: <20181113034609.GN29784@bubble.grove.modra.org>
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_legitimate_address_p): Replace
> rtx_equal_p call for known REGs with pointer comparison.
> (rs6000_secondary_reload_memory): Likewise.
> (rs6000_secondary_reload_inner): Likewise.