Commit e0651058 by Alexandre Oliva Committed by Alexandre Oliva

* rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.

From-SVN: r132794
parent d2b6be72
2008-03-01 Alexandre Oliva <aoliva@redhat.com> 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
* rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
2008-03-01 Alexandre Oliva <aoliva@redhat.com>
* tree-flow-inline.h (next_readonly_imm_use): Return * tree-flow-inline.h (next_readonly_imm_use): Return
NULL_USE_OPERAND_P after the end. NULL_USE_OPERAND_P after the end.
......
...@@ -2989,16 +2989,15 @@ loc_mentioned_in_p (rtx *loc, const_rtx in) ...@@ -2989,16 +2989,15 @@ loc_mentioned_in_p (rtx *loc, const_rtx in)
fmt = GET_RTX_FORMAT (code); fmt = GET_RTX_FORMAT (code);
for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--) for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
{ {
if (loc == &in->u.fld[i].rt_rtx)
return 1;
if (fmt[i] == 'e') if (fmt[i] == 'e')
{ {
if (loc_mentioned_in_p (loc, XEXP (in, i))) if (loc == &XEXP (in, i) || loc_mentioned_in_p (loc, XEXP (in, i)))
return 1; return 1;
} }
else if (fmt[i] == 'E') else if (fmt[i] == 'E')
for (j = XVECLEN (in, i) - 1; j >= 0; j--) for (j = XVECLEN (in, i) - 1; j >= 0; j--)
if (loc_mentioned_in_p (loc, XVECEXP (in, i, j))) if (loc == &XVECEXP (in, i, j)
|| loc_mentioned_in_p (loc, XVECEXP (in, i, j)))
return 1; return 1;
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment