diff options
author | J"orn Rennecke <amylaar@cygnus.co.uk> | 1999-06-16 13:32:14 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 1999-06-16 14:32:14 +0100 |
commit | 15c68354e9d437c3690ef6fb90a4fd21b533d8e6 (patch) | |
tree | d2645ebb431a9227e5c9155d83dae59270a5bd36 /gcc/cse.c | |
parent | 1b786838b14ff6ff0f8afd211275baaa1e76f4d6 (diff) | |
download | gcc-15c68354e9d437c3690ef6fb90a4fd21b533d8e6.zip gcc-15c68354e9d437c3690ef6fb90a4fd21b533d8e6.tar.gz gcc-15c68354e9d437c3690ef6fb90a4fd21b533d8e6.tar.bz2 |
cse.c (cse_insn): Don't put hard register source into tables for last insn of a libcall.
* cse.c (cse_insn): Don't put hard register source into tables for
last insn of a libcall.
From-SVN: r27550
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -7607,7 +7607,12 @@ cse_insn (insn, libcall_insn) enum machine_mode mode = GET_MODE (src) == VOIDmode ? GET_MODE (dest) : GET_MODE (src); - if (sets[i].src_elt == 0) + /* Don't put a hard register source into the table if this is + the last insn of a libcall. */ + if (sets[i].src_elt == 0 + && (GET_CODE (src) != REG + || REGNO (src) >= FIRST_PSEUDO_REGISTER + || ! find_reg_note (insn, REG_RETVAL, NULL_RTX))) { register struct table_elt *elt; |