]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Use an aarch64-specific structure for vector costing
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 26 Mar 2021 16:08:34 +0000 (16:08 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 26 Mar 2021 16:08:34 +0000 (16:08 +0000)
commit50a525b50c912999073a78220c6d62d87946b579
treeda70151cbc3ee60d3f03784bdd16eace20626a9a
parent14bd21c2c576d6f4b9bd403f543502cff40f54fc
aarch64: Use an aarch64-specific structure for vector costing

This patch makes the AArch64 vector code use its own vector
costs structure, rather than just using the default unsigned[3].

Unfortunately, it's not easy to make this change specific to
use_new_vector_costs, so this part is one that affects all CPUs.
The change is relatively mechanical though.

gcc/
* config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
(aarch64_init_cost): New function.
(aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
the default unsigned[3].
(aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
(TARGET_VECTORIZE_INIT_COST): Override.
(TARGET_VECTORIZE_FINISH_COST): Likewise.
(TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
gcc/config/aarch64/aarch64.c