diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2001-08-29 21:43:41 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@cygnus.com> | 2001-08-29 21:43:41 +0000 |
commit | 7c5f28536ab5b79ac3d3786a14e71fbf21955656 (patch) | |
tree | 865976ad0565108e4b7044a2fbec43d1778de04e /gcc/gcse.c | |
parent | 15dc3dfceafd7936af20e83cb7bdc0305c69b7a6 (diff) |
2001-08-29 Andrew MacLeod <amacleod@redhat.com>
* gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
note should not be considered outside the libcall block.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@45276 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c index 2a33a1555ec..029c5b6cf24 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -2545,10 +2545,12 @@ compute_hash_table (set_p) if (INSN_P (insn)) { if (find_reg_note (insn, REG_LIBCALL, NULL_RTX)) - in_libcall_block = 1; - else if (find_reg_note (insn, REG_RETVAL, NULL_RTX)) - in_libcall_block = 0; - hash_scan_insn (insn, set_p, in_libcall_block); + in_libcall_block = 1; + else if (set_p && find_reg_note (insn, REG_RETVAL, NULL_RTX)) + in_libcall_block = 0; + hash_scan_insn (insn, set_p, in_libcall_block); + if (!set_p && find_reg_note (insn, REG_RETVAL, NULL_RTX)) + in_libcall_block = 0; } } |