aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>2018-11-23 17:49:40 +0000
committerPhilipp Tomsich <ptomsich@gcc.gnu.org>2018-11-23 17:49:40 +0000
commitd5e9851e4df4c2528e2d464fd5bbbfd7cf0ab011 (patch)
tree9097a69cd0fc73a3bbf1f7f9395652429ff34635
parent52ddefd88c0ea53a122820bb8bffe6d74cb7b8b4 (diff)
downloadgcc-d5e9851e4df4c2528e2d464fd5bbbfd7cf0ab011.zip
gcc-d5e9851e4df4c2528e2d464fd5bbbfd7cf0ab011.tar.gz
gcc-d5e9851e4df4c2528e2d464fd5bbbfd7cf0ab011.tar.bz2
[aarch64] Add xgene1 prefetch tunings.
2018-11-23 Christoph Muellner <christoph.muellner@theobroma-systems.com> Philipp Tomsich <philipp.tomsich@theobroma-systems.com> * config/aarch64/aarch64.c (xgene1_tunings): Add Xgene1 specific prefetch tunings. Co-Authored-By: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> From-SVN: r266413
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/config/aarch64/aarch64.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dd8d3f9..99538f7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,6 +1,8 @@
2018-11-23 Christoph Muellner <christoph.muellner@theobroma-systems.com>
Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
+ * config/aarch64/aarch64.c (xgene1_tunings): Add Xgene1 specific
+ prefetch tunings.
* config/aarch64/aarch64.c (xgene1_addrcost_table): Correct the post-modify
costs.
* config/arm/aarch-cost-tables.h (xgene1_extra_costs): Update the cost table
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 598ea79..7375e06 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -662,6 +662,17 @@ static const cpu_prefetch_tune tsv110_prefetch_tune =
-1 /* default_opt_level */
};
+static const cpu_prefetch_tune xgene1_prefetch_tune =
+{
+ 8, /* num_slots */
+ 32, /* l1_cache_size */
+ 64, /* l1_cache_line_size */
+ 256, /* l2_cache_size */
+ true, /* prefetch_dynamic_strides */
+ -1, /* minimum_stride */
+ -1 /* default_opt_level */
+};
+
static const struct tune_params generic_tunings =
{
&cortexa57_extra_costs,
@@ -943,7 +954,7 @@ static const struct tune_params xgene1_tunings =
0, /* max_case_values. */
tune_params::AUTOPREFETCHER_OFF, /* autoprefetcher_model. */
(AARCH64_EXTRA_TUNE_NO_LDP_STP_QREGS), /* tune_flags. */
- &generic_prefetch_tune
+ &xgene1_prefetch_tune
};
static const struct tune_params qdf24xx_tunings =