rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT and SIGN_EXTRACT.

* rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
	and SIGN_EXTRACT.

From-SVN: r65782
This commit is contained in:
Roger Sayle 2003-04-18 13:30:26 +00:00 committed by Roger Sayle
parent e9b841813c
commit c553b7026a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-04-18 Roger Sayle <roger@eyesopen.com>
* rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
and SIGN_EXTRACT.
2003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/7675

View File

@ -1573,7 +1573,9 @@ reg_overlap_mentioned_p (x, in)
unsigned int regno, endregno;
/* Overly conservative. */
if (GET_CODE (x) == STRICT_LOW_PART)
if (GET_CODE (x) == STRICT_LOW_PART
|| GET_CODE (x) == ZERO_EXTRACT
|| GET_CODE (x) == SIGN_EXTRACT)
x = XEXP (x, 0);
/* If either argument is a constant, then modifying X can not affect IN. */