public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-11297] aarch64: update ampere1 vectorization cost
@ 2023-04-18 0:38 Philipp Tomsich
0 siblings, 0 replies; only message in thread
From: Philipp Tomsich @ 2023-04-18 0:38 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9414c71c1e01664d2dfacb997c863d278298d565
commit r10-11297-g9414c71c1e01664d2dfacb997c863d278298d565
Author: Philipp Tomsich <philipp.tomsich@vrull.eu>
Date: Tue Apr 18 01:26:32 2023 +0200
aarch64: update ampere1 vectorization cost
The original submission of AmpereOne (-mcpu=ampere1) costs occurred
prior to exhaustive testing of vectorizable workloads against
hardware.
Adjust the vector costs to achieve the best results and more closely
match the underlying hardware.
gcc/ChangeLog:
* config/aarch64/aarch64.c: Update vector costs for ampere1.
Co-Authored-By: Jiangning Liu <jiangning.liu@amperecomputing.com>
Co-Authored-By: Manolis Tsamis <manolis.tsamis@vrull.eu>
(cherry picked from commit ff1f2f2412bda118f7ddc10e69bd4284d9b24b9e)
Diff:
---
gcc/config/aarch64/aarch64.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index e491b9d0d38..9aebbbd4910 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -785,18 +785,18 @@ static const struct cpu_vector_cost a64fx_vector_cost =
static const struct cpu_vector_cost ampere1_vector_cost =
{
1, /* scalar_int_stmt_cost */
- 1, /* scalar_fp_stmt_cost */
+ 3, /* scalar_fp_stmt_cost */
4, /* scalar_load_cost */
1, /* scalar_store_cost */
- 3, /* int_stmt_cost */
+ 1, /* int_stmt_cost */
3, /* fp_stmt_cost */
2, /* permute_cost */
6, /* vec_to_scalar_cost */
7, /* scalar_to_vec_cost */
- 5, /* align_load_cost */
- 5, /* unalign_load_cost */
- 2, /* unalign_store_cost */
- 2, /* store_cost */
+ 4, /* align_load_cost */
+ 4, /* unalign_load_cost */
+ 1, /* unalign_store_cost */
+ 1, /* store_cost */
1, /* cond_taken_branch_cost */
1 /* cond_not_taken_branch_cost */
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-18 0:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18 0:38 [gcc r10-11297] aarch64: update ampere1 vectorization cost Philipp Tomsich
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).