This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Use MEM tracking information for alias analysis


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]