diff mbox series

target: delete unnecessary codes in aarch64.c

Message ID 20200804085852.1381-1-hujiangping@cn.fujitsu.com
State New
Headers show
Series target: delete unnecessary codes in aarch64.c | expand

Commit Message

Hu, Jiangping Aug. 4, 2020, 8:58 a.m. UTC
Hi,

This patch deletes 2 unnecessary codes in function
aarch64_if_then_else_costs, which were duplicated
where the function starts.

Tested on aarch64. OK for trunk?

Regards!
Hujp

---
 gcc/config/aarch64/aarch64.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Richard Sandiford Aug. 4, 2020, 4:35 p.m. UTC | #1
Hu Jiangping <hujiangping@cn.fujitsu.com> writes:
> Hi,
>
> This patch deletes 2 unnecessary codes in function
> aarch64_if_then_else_costs, which were duplicated
> where the function starts.

Thanks, pushed to trunk.

Richard

>
> Tested on aarch64. OK for trunk?
>
> Regards!
> Hujp
>
> ---
>  gcc/config/aarch64/aarch64.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
> index 7c3ab3eeb1f..a70b2287b2c 100644
> --- a/gcc/config/aarch64/aarch64.c
> +++ b/gcc/config/aarch64/aarch64.c
> @@ -11774,8 +11774,6 @@ aarch64_if_then_else_costs (rtx op0, rtx op1, rtx op2, int *cost, bool speed)
>  	  if (speed)
>  	    {
>  	      machine_mode mode = GET_MODE (XEXP (op1, 0));
> -	      const struct cpu_cost_table *extra_cost
> -		= aarch64_tune_params.insn_extra_cost;
>  
>  	      if (GET_MODE_CLASS (mode) == MODE_INT)
>  		*cost += extra_cost->alu.arith;
diff mbox series

Patch

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 7c3ab3eeb1f..a70b2287b2c 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -11774,8 +11774,6 @@  aarch64_if_then_else_costs (rtx op0, rtx op1, rtx op2, int *cost, bool speed)
 	  if (speed)
 	    {
 	      machine_mode mode = GET_MODE (XEXP (op1, 0));
-	      const struct cpu_cost_table *extra_cost
-		= aarch64_tune_params.insn_extra_cost;
 
 	      if (GET_MODE_CLASS (mode) == MODE_INT)
 		*cost += extra_cost->alu.arith;