aarch64-cores.def (thunderxt88p1): Use thunderxt88 tunings.
authorAndrew Pinski <apinski@cavium.com>
Wed, 21 Jun 2017 15:35:14 +0000 (15:35 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 21 Jun 2017 15:35:14 +0000 (08:35 -0700)
2017-06-21  Andrew Pinski  <apinski@cavium.com>

        * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
        tunings.
        (thunderxt88): Likewise.
        * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
        (thunderx_prefetch_tune): New variable.
        (thunderx2t99_prefetch_tune): Update for the correct values.
        (thunderxt88_tunings): New variable.
        (thunderx_tunings): Use thunderx_prefetch_tune instead of
        generic_prefetch_tune.
        (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.

From-SVN: r249458

gcc/ChangeLog
gcc/config/aarch64/aarch64-cores.def
gcc/config/aarch64/aarch64.c

index 276a8d22a566d871e52a97025f3f21c317b12083..1b41a7f66431c7dcd1e79f9a08726bc368b46141 100644 (file)
@@ -1,3 +1,16 @@
+2017-06-21  Andrew Pinski  <apinski@cavium.com>
+
+       * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
+       tunings.
+       (thunderxt88): Likewise.
+       * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
+       (thunderx_prefetch_tune): New variable.
+       (thunderx2t99_prefetch_tune): Update for the correct values.
+       (thunderxt88_tunings): New variable.
+       (thunderx_tunings): Use thunderx_prefetch_tune instead of
+       generic_prefetch_tune.
+       (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
+
 2017-06-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
index 0baa20ce8f5c85fd4edfe3040f1744c1af812099..f8342ca722db720f601d63a68386e03f635033dd 100644 (file)
@@ -56,8 +56,8 @@ AARCH64_CORE("cortex-a73",  cortexa73, cortexa57, 8A,  AARCH64_FL_FOR_ARCH8 | AA
 AARCH64_CORE("thunderx",      thunderx,      thunderx,  8A,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC | AARCH64_FL_CRYPTO, thunderx,  0x43, 0x0a0, -1)
 /* Do not swap around "thunderxt88p1" and "thunderxt88",
    this order is required to handle variant correctly. */
-AARCH64_CORE("thunderxt88p1", thunderxt88p1, thunderx,  8A,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC | AARCH64_FL_CRYPTO,        thunderx,  0x43, 0x0a1, 0)
-AARCH64_CORE("thunderxt88",   thunderxt88,   thunderx,  8A,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC | AARCH64_FL_CRYPTO, thunderx,  0x43, 0x0a1, -1)
+AARCH64_CORE("thunderxt88p1", thunderxt88p1, thunderx,  8A,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC | AARCH64_FL_CRYPTO,        thunderxt88,  0x43, 0x0a1, 0)
+AARCH64_CORE("thunderxt88",   thunderxt88,   thunderx,  8A,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC | AARCH64_FL_CRYPTO, thunderxt88,  0x43, 0x0a1, -1)
 AARCH64_CORE("thunderxt81",   thunderxt81,   thunderx,  8A,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC | AARCH64_FL_CRYPTO, thunderx,  0x43, 0x0a2, -1)
 AARCH64_CORE("thunderxt83",   thunderxt83,   thunderx,  8A,  AARCH64_FL_FOR_ARCH8 | AARCH64_FL_CRC | AARCH64_FL_CRYPTO, thunderx,  0x43, 0x0a3, -1)
 
index ba6b45fcb3d5d663dcaf5273a91a7ec03b0618ae..97937dd74cfa81156177f334c156ee0e10b34e7f 100644 (file)
@@ -554,12 +554,30 @@ static const cpu_prefetch_tune qdf24xx_prefetch_tune =
   3                    /* default_opt_level  */
 };
 
+static const cpu_prefetch_tune thunderxt88_prefetch_tune =
+{
+  8,                   /* num_slots  */
+  32,                  /* l1_cache_size  */
+  128,                 /* l1_cache_line_size  */
+  16*1024,             /* l2_cache_size  */
+  3                    /* default_opt_level  */
+};
+
+static const cpu_prefetch_tune thunderx_prefetch_tune =
+{
+  8,                   /* num_slots  */
+  32,                  /* l1_cache_size  */
+  128,                 /* l1_cache_line_size  */
+  -1,                  /* l2_cache_size  */
+  -1                   /* default_opt_level  */
+};
+
 static const cpu_prefetch_tune thunderx2t99_prefetch_tune =
 {
-  0,                   /* num_slots  */
-  -1,                  /* l1_cache_size  */
+  8,                   /* num_slots  */
+  32,                  /* l1_cache_size  */
   64,                  /* l1_cache_line_size  */
-  -1,                  /* l2_cache_size  */
+  256,                 /* l2_cache_size  */
   -1                   /* default_opt_level  */
 };
 
@@ -745,6 +763,31 @@ static const struct tune_params exynosm1_tunings =
   &exynosm1_prefetch_tune
 };
 
+static const struct tune_params thunderxt88_tunings =
+{
+  &thunderx_extra_costs,
+  &generic_addrcost_table,
+  &thunderx_regmove_cost,
+  &thunderx_vector_cost,
+  &generic_branch_cost,
+  &generic_approx_modes,
+  6, /* memmov_cost  */
+  2, /* issue_rate  */
+  AARCH64_FUSE_CMP_BRANCH, /* fusible_ops  */
+  8,   /* function_align.  */
+  8,   /* jump_align.  */
+  8,   /* loop_align.  */
+  2,   /* int_reassoc_width.  */
+  4,   /* fp_reassoc_width.  */
+  1,   /* vec_reassoc_width.  */
+  2,   /* min_div_recip_mul_sf.  */
+  2,   /* min_div_recip_mul_df.  */
+  0,   /* max_case_values.  */
+  tune_params::AUTOPREFETCHER_OFF,     /* autoprefetcher_model.  */
+  (AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW),    /* tune_flags.  */
+  &thunderxt88_prefetch_tune
+};
+
 static const struct tune_params thunderx_tunings =
 {
   &thunderx_extra_costs,
@@ -767,7 +810,7 @@ static const struct tune_params thunderx_tunings =
   0,   /* max_case_values.  */
   tune_params::AUTOPREFETCHER_OFF,     /* autoprefetcher_model.  */
   (AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW),    /* tune_flags.  */
-  &generic_prefetch_tune
+  &thunderx_prefetch_tune
 };
 
 static const struct tune_params xgene1_tunings =
@@ -841,7 +884,7 @@ static const struct tune_params thunderx2t99_tunings =
   2,   /* min_div_recip_mul_sf.  */
   2,   /* min_div_recip_mul_df.  */
   0,   /* max_case_values.  */
-  tune_params::AUTOPREFETCHER_OFF,     /* autoprefetcher_model.  */
+  tune_params::AUTOPREFETCHER_WEAK,    /* autoprefetcher_model.  */
   (AARCH64_EXTRA_TUNE_NONE),   /* tune_flags.  */
   &thunderx2t99_prefetch_tune
 };