This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Improve memrefs_conflict_p with VALUEs
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Apr 2010 07:39:23 -0700
- Subject: Re: [PATCH] Improve memrefs_conflict_p with VALUEs
- References: <20100416071843.GI2817@tyan-ft48-01.lab.bos.redhat.com>
On Fri, Apr 16, 2010 at 12:18 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
>
> The following patch improves it for VALUE == VALUE pair (if the value is
> the same, it would unnecessarily get_addr on both sides and possibly expand
> to something that memrefs_conflict_p can't handle) and when one address
> is a VALUE and another is a REG - in that case it checks if VALUE isn't the
> current VALUE of the register.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2010-04-16 ?Jakub Jelinek ?<jakub@redhat.com>
>
> ? ? ? ?* alias.c (memrefs_conflict_p): If x and y are the same VALUE,
> ? ? ? ?don't call get_addr on both. ?If one expression is a VALUE and
> ? ? ? ?the other a REG, check VALUE's locs if the REG isn't among them.
>
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43767
--
H.J.