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
This commit is contained in:
J"orn Rennecke 1999-06-16 13:32:14 +00:00 committed by Joern Rennecke
parent 1b786838b1
commit 15c68354e9
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Jun 16 20:29:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* cse.c (cse_insn): Don't put hard register source into tables for
last insn of a libcall.
Wed Jun 16 19:44:33 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* loop.c (strength_reduce): Insert sets of derived givs at every

View File

@ -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;