Commit 15c68354 by J"orn Rennecke Committed by Joern Rennecke

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
parent 1b786838
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment