public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7757] aarch64: Update regmove costs for neoverse-v1 and neoverse-512tvb tunings
@ 2022-03-22 12:02 Andre Simoes Dias Vieira
  0 siblings, 0 replies; only message in thread
From: Andre Simoes Dias Vieira @ 2022-03-22 12:02 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:930eb8b6c2cc1a95ce60eb0d15994e16ed0b8ca4

commit r12-7757-g930eb8b6c2cc1a95ce60eb0d15994e16ed0b8ca4
Author: Andre Vieira <andre.simoesdiasvieira@arm.com>
Date:   Tue Mar 22 10:51:12 2022 +0000

    aarch64: Update regmove costs for neoverse-v1 and neoverse-512tvb tunings
    
    This patch updates the register move tunings for
    -mcpu/-mtune={neoverse-v1,neoverse-512tvb}.
    
    gcc/ChangeLog:
    2022-03-22  Tamar Christina  <tamar.christina@arm.com>
                Andre Vieira  <andre.simoesdiasvieira@arm.com>
    
            * config/aarch64/aarch64.cc (neoversev1_regmove_cost): New tuning
            struct.
            (neoversev1_tunings): Use neoversev1_regmove_cost and update store_int
            cost.
            (neoverse512tvb_tunings): Likewise.

Diff:
---
 gcc/config/aarch64/aarch64.cc | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc
index 9fbc4f322c5..903c842d65a 100644
--- a/gcc/config/aarch64/aarch64.cc
+++ b/gcc/config/aarch64/aarch64.cc
@@ -670,6 +670,16 @@ static const struct cpu_regmove_cost neoversen2_regmove_cost =
   2 /* FP2FP  */
 };
 
+static const struct cpu_regmove_cost neoversev1_regmove_cost =
+{
+  1, /* GP2GP  */
+  /* Spilling to int<->fp instead of memory is recommended so set
+     realistic costs compared to memmov_cost.  */
+  3, /* GP2FP  */
+  2, /* FP2GP  */
+  2 /* FP2FP  */
+};
+
 static const struct cpu_regmove_cost demeter_regmove_cost =
 {
   1, /* GP2GP  */
@@ -2063,13 +2073,13 @@ static const struct tune_params neoversev1_tunings =
 {
   &cortexa76_extra_costs,
   &neoversev1_addrcost_table,
-  &generic_regmove_cost,
+  &neoversev1_regmove_cost,
   &neoversev1_vector_cost,
   &generic_branch_cost,
   &generic_approx_modes,
   SVE_256, /* sve_width  */
   { 4, /* load_int.  */
-    1, /* store_int.  */
+    2, /* store_int.  */
     6, /* load_fp.  */
     2, /* store_fp.  */
     6, /* load_pred.  */
@@ -2200,13 +2210,13 @@ static const struct tune_params neoverse512tvb_tunings =
 {
   &cortexa76_extra_costs,
   &neoversev1_addrcost_table,
-  &generic_regmove_cost,
+  &neoversev1_regmove_cost,
   &neoverse512tvb_vector_cost,
   &generic_branch_cost,
   &generic_approx_modes,
   SVE_128 | SVE_256, /* sve_width  */
   { 4, /* load_int.  */
-    1, /* store_int.  */
+    2, /* store_int.  */
     6, /* load_fp.  */
     2, /* store_fp.  */
     6, /* load_pred.  */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-22 12:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 12:02 [gcc r12-7757] aarch64: Update regmove costs for neoverse-v1 and neoverse-512tvb tunings Andre Simoes Dias Vieira

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