Minor improvements to alias.c:nonoverlapping_memrefs_p

Richard Henderson rth@redhat.com
Sat Nov 3 23:29:00 GMT 2001


On Sun, Nov 11, 2001 at 05:58:38AM -0500, Richard Kenner wrote:
> !       return ((CONSTANT_P (basex) && CONSTANT_P (basey))
> ! 	      || (CONSTANT_P (basex) && REG_P (basey)
> ! 		  && REGNO (basey) <= LAST_VIRTUAL_REGISTER)
> ! 	      || (CONSTANT_P (basey) && REG_P (basex)
> ! 		  && REGNO (basex) <= LAST_VIRTUAL_REGISTER));

This does not seem to me to be an appropriate way to test
for frame-pointer-ness.  In particular, argument registers
may be base registers.


r~



More information about the Gcc-patches mailing list