From 5aef51c2199f69885a43592db3a1ec15f43f4064 Mon Sep 17 00:00:00 2001 From: Anton Youdkevitch Date: Tue, 5 Nov 2019 12:07:53 +0000 Subject: [PATCH] [Aarch64] Fix vec_perm cost for thunderx2t99 Here is the one-liner that fixes the incorrect vec_perm cost for thunderx2t99 chip. With the patch applied 526.blender of CPU2017 gets ~5% improvement with no measurable changes for other benchmarks. 2019-11-05 Anton Youdkevitch * config/aarch64/aarch64.c (thunderx2t99_vector_cost): Change vec_perm field to 10. From-SVN: r277826 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/aarch64.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1b80d2ca604..cf6aa5c6ff9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-11-05 Anton Youdkevitch + + * config/aarch64/aarch64.c (thunderx2t99_vector_cost): + Change vec_perm field to 10. + 2019-11-05 Arnaud Charlet * doc/install.texi: Further fix syntax for html generation. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 599d07a729e..f28fe804761 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -585,7 +585,7 @@ static const struct cpu_vector_cost thunderx2t99_vector_cost = 1, /* scalar_store_cost */ 5, /* vec_int_stmt_cost */ 6, /* vec_fp_stmt_cost */ - 3, /* vec_permute_cost */ + 10, /* vec_permute_cost */ 6, /* vec_to_scalar_cost */ 5, /* scalar_to_vec_cost */ 8, /* vec_align_load_cost */ -- 2.30.2