alias.c (memrefs_conflict_p): An ADDRESSOF doesn't conflict with frame_pointer_rtx.

* alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
	conflict with frame_pointer_rtx.

From-SVN: r36401
This commit is contained in:
John Wehle 2000-09-14 04:47:48 +00:00 committed by John Wehle
parent fd5d5b07b7
commit b24ea07766
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
* alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
conflict with frame_pointer_rtx.
2000-09-13 Kazu Hirata <kazu@hxi.com>
* loop.c: Fix formatting.

View File

@ -1457,8 +1457,17 @@ memrefs_conflict_p (xsize, x, ysize, y, c)
return memrefs_conflict_p (xsize, x, ysize, XEXP (y, 0), c);
}
if (GET_CODE (x) == ADDRESSOF && GET_CODE (y) == ADDRESSOF)
return xsize < 0 || ysize < 0;
if (GET_CODE (x) == ADDRESSOF)
{
if (y == frame_pointer_rtx
|| GET_CODE (y) == ADDRESSOF)
return xsize <= 0 || ysize <= 0;
}
if (GET_CODE (y) == ADDRESSOF)
{
if (x == frame_pointer_rtx)
return xsize <= 0 || ysize <= 0;
}
if (CONSTANT_P (x))
{