Commit 99575d60 by Chung-Ju Wu Committed by Chung-Ju Wu

[NDS32] Since we are going to provide new heuristic for fp-as-gp optimization,

        we better not to set cfun->machine->fp_as_gp_p at prologue expanding.

	* config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
	optimization detection.

From-SVN: r214866
parent 7f6cd86b
2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
optimization detection.
2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c (nds32_function_arg): Deal with nameless
arguments.
(nds32_function_arg_advance): Deal with nameless arguments.
......@@ -2784,12 +2784,6 @@ nds32_expand_prologue (void)
rtx Rb, Re;
rtx fp_adjust_insn, sp_adjust_insn;
/* Before computing everything for stack frame size,
we check if it is still worth to use fp_as_gp optimization.
If it is, the 'df_regs_ever_live_p (FP_REGNUM)' will be set
so that $fp will be saved on stack. */
cfun->machine->fp_as_gp_p = nds32_fp_as_gp_check_available ();
/* Compute and setup stack frame size.
The result will be in cfun->machine. */
nds32_compute_stack_frame ();
......@@ -2993,12 +2987,6 @@ nds32_expand_prologue_v3push (void)
rtx Rb, Re;
rtx fp_adjust_insn, sp_adjust_insn;
/* Before computing everything for stack frame size,
we check if it is still worth to use fp_as_gp optimization.
If it is, the 'df_regs_ever_live_p (FP_REGNUM)' will be set
so that $fp will be saved on stack. */
cfun->machine->fp_as_gp_p = nds32_fp_as_gp_check_available ();
/* Compute and setup stack frame size.
The result will be in cfun->machine. */
nds32_compute_stack_frame ();
......
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