This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use MEM tracking information for alias analysis
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: Re: Use MEM tracking information for alias analysis
- From: Richard Henderson <rth at redhat dot com>
- Date: Fri, 9 Nov 2001 15:14:34 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <10111092300.AA27257@vlsi1.ultra.nyu.edu>
On Fri, Nov 09, 2001 at 06:00:39PM -0500, Richard Kenner wrote:
> + if (CONSTANT_P (basex) && CONSTANT_P (basey) && ! rtx_equal_p (basex, basey))
> + return 1;
> + else if (! rtx_equal_p (basex, basey))
> + return 0;
Perhaps better as
if (! rtx_equal_p (basex, basey))
return CONSTANT_P (basex) && CONSTANT_P (basey);
> + sizey = (REG_P (rtly) ? GET_MODE_SIZE (GET_MODE (rtly))
> + : MEM_SIZE (rtly) ? INTVAL (MEM_SIZE (rtly)) :
> + -1);
[...]
> + if (MEM_SIZE (y))
> + sizey = INTVAL (MEM_SIZE (y));
Redundant checks of MEM_SIZE.
r~