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
the last insn of a libcall.
Bring over from mainline sources. Fixes various sparc lapack problems.
From-SVN: r28088
Tue Jul 13 10:44:14 1999 Jeffrey A Law (law@cygnus.com)
+ 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
+ the last insn of a libcall.
+
* rs6000.c (find_addr_reg): Do not select r0 as an address
register.
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;