[PATCH] Improve memrefs_conflict_p with VALUEs

H.J. Lu hjl.tools@gmail.com
Fri Apr 16 14:42:00 GMT 2010


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.



More information about the Gcc-patches mailing list