From 6c1b7455691f2c133f99c2dee0fad573e8865a0b Mon Sep 17 00:00:00 2001 From: jasonwucj Date: Wed, 3 Sep 2014 10:01:54 +0000 Subject: [PATCH] [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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214866 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/nds32/nds32.c | 12 ------------ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d91d826c9757..aaeea0a76472 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-03 Chung-Ju Wu + + * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp + optimization detection. + 2014-09-03 Chung-Ju Wu * config/nds32/nds32.c (nds32_function_arg): Deal with nameless diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index 509b4a5bfc51..d76d8251db3b 100644 --- a/gcc/config/nds32/nds32.c +++ b/gcc/config/nds32/nds32.c @@ -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 (); -- 2.47.2