Commit cf641ce6 by Joern Rennecke

(calc_live_regs): need not save MACL/MACH when not live, and in leaf function.

From-SVN: r13627
parent f3e9068e
......@@ -2590,10 +2590,9 @@ calc_live_regs (count_ptr, live_regs_mask2)
{
/* Need to save all the regs ever live. */
if ((regs_ever_live[reg]
|| (call_used_regs[reg] && ! fixed_regs[reg]
&& regs_ever_live[PR_REG])
|| reg == MACH_REG
|| reg == MACL_REG)
|| (call_used_regs[reg]
&& (! fixed_regs[reg] || reg == MACH_REG || reg == MACL_REG)
&& regs_ever_live[PR_REG]))
&& reg != STACK_POINTER_REGNUM && reg != ARG_POINTER_REGNUM
&& reg != RETURN_ADDRESS_POINTER_REGNUM
&& reg != T_REG && reg != GBR_REG)
......
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