regrename.c (regrename_optimize): Do not rename registers to leaf registers.

* regrename.c (regrename_optimize): Do not rename registers to
	leaf registers.

From-SVN: r42066
This commit is contained in:
Mark Mitchell 2001-05-14 07:56:57 +00:00 committed by Mark Mitchell
parent ce29729adf
commit b2a8b02619
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2001-05-14 Mark Mitchell <mark@codesourcery.com>
* regrename.c (regrename_optimize): Do not rename registers to
leaf registers.
2001-05-14 Alexandre Oliva <aoliva@redhat.com>
* rtl.texi (CALL_INSN_FUNCTION_USAGE): Note that (and when) it may

View file

@ -292,6 +292,12 @@ regrename_optimize ()
/* Can't use regs which aren't saved by the prologue. */
|| (! regs_ever_live[new_reg + i]
&& ! call_used_regs[new_reg + i])
#ifdef LEAF_REGISTERS
/* We can't use a non-leaf register if we're in a
leaf function. */
|| (current_function_is_leaf
&& !LEAF_REGISTERS[new_reg + i])
#endif
#ifdef HARD_REGNO_RENAME_OK
|| ! HARD_REGNO_RENAME_OK (reg + i, new_reg + i)
#endif