rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p for the parts of an UNSPEC / UNSPEC_VOLATILE.

* rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
	for the parts of an UNSPEC / UNSPEC_VOLATILE.

From-SVN: r27720
This commit is contained in:
J"orn Rennecke 1999-06-23 15:05:18 +00:00 committed by Joern Rennecke
parent 34043bd2e9
commit 2f9fb4c226
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Jun 23 21:26:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
for the parts of an UNSPEC / UNSPEC_VOLATILE.
1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>
*fixinc/inclhack.def: Add fix development commentary

View File

@ -410,6 +410,11 @@ reg_referenced_p (x, body)
case UNSPEC:
case UNSPEC_VOLATILE:
for (i = XVECLEN (body, 0) - 1; i >= 0; i--)
if (reg_overlap_mentioned_p (x, XVECEXP (body, 0, i)))
return 1;
return 0;
case PARALLEL:
for (i = XVECLEN (body, 0) - 1; i >= 0; i--)
if (reg_referenced_p (x, XVECEXP (body, 0, i)))