Hi,
since uses of addss for other purposes then modelling FP addition/subtraction 
should
be gone now, this patch sets addss cost back to 2.

Bootsrapped/regtested x86_64-linux, comitted.

gcc/ChangeLog:

        PR target/119298
        * config/i386/x86-tune-costs.h (struct processor_costs): Set addss cost
        back to 2.

diff --git a/gcc/config/i386/x86-tune-costs.h b/gcc/config/i386/x86-tune-costs.h
index e5091293509..b08081e37cf 100644
--- a/gcc/config/i386/x86-tune-costs.h
+++ b/gcc/config/i386/x86-tune-costs.h
@@ -2252,7 +2252,7 @@ struct processor_costs znver5_cost = {
   COSTS_N_INSNS (1),                   /* cost of cheap SSE instruction.  */
   /* ADDSS has throughput 2 and latency 2
      (in some cases when source is another addition).  */
-  COSTS_N_INSNS (3),                   /* cost of ADDSS/SD SUBSS/SD insns.  */
+  COSTS_N_INSNS (2),                   /* cost of ADDSS/SD SUBSS/SD insns.  */
   /* MULSS has throughput 2 and latency 3.  */
   COSTS_N_INSNS (3),                   /* cost of MULSS instruction.  */
   COSTS_N_INSNS (3),                   /* cost of MULSD instruction.  */

Reply via email to