aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1999-06-16 13:32:14 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>1999-06-16 14:32:14 +0100
commit15c68354e9d437c3690ef6fb90a4fd21b533d8e6 (patch)
treed2645ebb431a9227e5c9155d83dae59270a5bd36 /gcc/cse.c
parent1b786838b14ff6ff0f8afd211275baaa1e76f4d6 (diff)
downloadgcc-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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 5fc6c78..605d185 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -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;