reload1.c (reload_cse_simplify): Before checking REG_FUNCTION_VALUE_P, check REG_P.

* reload1.c (reload_cse_simplify): Before checking
	REG_FUNCTION_VALUE_P, check REG_P.

From-SVN: r56267
This commit is contained in:
Hans-Peter Nilsson 2002-08-14 00:49:08 +00:00 committed by Hans-Peter Nilsson
parent a43c89861e
commit cf87d551b0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-08-14 Hans-Peter Nilsson <hp@bitrange.com>
* reload1.c (reload_cse_simplify): Before checking
REG_FUNCTION_VALUE_P, check REG_P.
2002-08-13 Geoffrey Keating <geoffk@redhat.com>
* Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.

View File

@ -8044,7 +8044,8 @@ reload_cse_simplify (insn, testreg)
{
if (! reload_cse_noop_set_p (part))
break;
if (REG_FUNCTION_VALUE_P (SET_DEST (part)))
if (REG_P (SET_DEST (part))
&& REG_FUNCTION_VALUE_P (SET_DEST (part)))
{
if (value)
break;