* config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.

From-SVN: r91021
This commit is contained in:
Eric Botcazou 2004-11-22 19:32:26 +01:00 committed by Eric Botcazou
parent 4e596a097d
commit 167a1354b3
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
* config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
2004-11-22 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/power4.md: Remove delay between dispatch and issue

View File

@ -3983,6 +3983,12 @@ mem_min_alignment (rtx mem, int desired)
if (GET_CODE (mem) != MEM)
return 0;
/* Obviously... */
if (MEM_ALIGN (mem) / BITS_PER_UNIT >= (unsigned)desired)
return 1;
/* ??? The rest of the function predates MEM_ALIGN so
there is probably a bit of redundancy. */
addr = XEXP (mem, 0);
base = offset = NULL_RTX;
if (GET_CODE (addr) == PLUS)