* config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.

From-SVN: r121622
This commit is contained in:
Bob Wilson 2007-02-05 22:50:31 +00:00 committed by Bob Wilson
parent b95becfc09
commit 63694bdd4e
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-02-05 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
2007-02-05 Richard Guenther <rguenther@suse.de>
* tree-vectorizer.h (vectorizable_function): Add argument type

View File

@ -449,6 +449,8 @@ constantpool_address_p (rtx addr)
int
constantpool_mem_p (rtx op)
{
if (GET_CODE (op) == SUBREG)
op = SUBREG_REG (op);
if (GET_CODE (op) == MEM)
return constantpool_address_p (XEXP (op, 0));
return FALSE;