public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] target: delete unnecessary codes in aarch64.c
@ 2020-08-04  8:58 Hu Jiangping
  2020-08-04 16:35 ` Richard Sandiford
  0 siblings, 1 reply; 2+ messages in thread
From: Hu Jiangping @ 2020-08-04  8:58 UTC (permalink / raw)
  To: gcc-patches

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(-)

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;
-- 
2.17.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] target: delete unnecessary codes in aarch64.c
  2020-08-04  8:58 [PATCH] target: delete unnecessary codes in aarch64.c Hu Jiangping
@ 2020-08-04 16:35 ` Richard Sandiford
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Sandiford @ 2020-08-04 16:35 UTC (permalink / raw)
  To: Hu Jiangping; +Cc: gcc-patches

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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-04 16:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-04  8:58 [PATCH] target: delete unnecessary codes in aarch64.c Hu Jiangping
2020-08-04 16:35 ` Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).