Commit fe0f9c4b by Richard Kenner

(life_analysis): Mark FP live at end of function.

From-SVN: r2655
parent e28d6e8a
......@@ -861,6 +861,20 @@ life_analysis (f, nregs)
|= (REGSET_ELT_TYPE) 1 << (STACK_POINTER_REGNUM % REGSET_ELT_BITS);
}
/* Mark the frame pointer is needed at the end of the function. If
we end up eliminating it, it will be removed from the live list
of each basic block by reload. */
if (n_basic_blocks > 0)
{
basic_block_live_at_end[n_basic_blocks - 1]
[FRAME_POINTER_REGNUM / REGSET_ELT_BITS]
|= (REGSET_ELT_TYPE) 1 << (FRAME_POINTER_REGNUM % REGSET_ELT_BITS);
basic_block_new_live_at_end[n_basic_blocks - 1]
[FRAME_POINTER_REGNUM / REGSET_ELT_BITS]
|= (REGSET_ELT_TYPE) 1 << (FRAME_POINTER_REGNUM % REGSET_ELT_BITS);
}
/* Mark all global registers as being live at the end of the function
since they may be referenced by our caller. */
......
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