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:
parent
ce29729adf
commit
b2a8b02619
2 changed files with 11 additions and 0 deletions
|
@ -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>
|
2001-05-14 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* rtl.texi (CALL_INSN_FUNCTION_USAGE): Note that (and when) it may
|
* rtl.texi (CALL_INSN_FUNCTION_USAGE): Note that (and when) it may
|
||||||
|
|
|
@ -292,6 +292,12 @@ regrename_optimize ()
|
||||||
/* Can't use regs which aren't saved by the prologue. */
|
/* Can't use regs which aren't saved by the prologue. */
|
||||||
|| (! regs_ever_live[new_reg + i]
|
|| (! regs_ever_live[new_reg + i]
|
||||||
&& ! call_used_regs[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
|
#ifdef HARD_REGNO_RENAME_OK
|
||||||
|| ! HARD_REGNO_RENAME_OK (reg + i, new_reg + i)
|
|| ! HARD_REGNO_RENAME_OK (reg + i, new_reg + i)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue