diff options
author | Hans-Peter Nilsson <hp@bitrange.com> | 2002-08-14 00:49:08 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2002-08-14 00:49:08 +0000 |
commit | cf87d551b09fe04a5878a6ea481114d039b93496 (patch) | |
tree | c945af8ea299f479af09621a9c71c37e97306cbe /gcc/reload1.c | |
parent | a43c89861e0571c342bfde4fb070e981be11998c (diff) | |
download | gcc-cf87d551b09fe04a5878a6ea481114d039b93496.zip gcc-cf87d551b09fe04a5878a6ea481114d039b93496.tar.gz gcc-cf87d551b09fe04a5878a6ea481114d039b93496.tar.bz2 |
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
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index 894df87..23ab50f 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -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; |