diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-08-03 13:00:46 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-08-03 13:00:46 +0100 |
commit | 537afb0857c8f60c2b60a09fad4660420cd13e8f (patch) | |
tree | 0b4dbd4d9ccad0cb3f10c76b9f24f8bdd8dbf375 /gcc/doc/invoke.texi | |
parent | 78770e0e5d9fef70679e1db4eb2fb06596fbb2f8 (diff) | |
download | gcc-537afb0857c8f60c2b60a09fad4660420cd13e8f.zip gcc-537afb0857c8f60c2b60a09fad4660420cd13e8f.tar.gz gcc-537afb0857c8f60c2b60a09fad4660420cd13e8f.tar.bz2 |
aarch64: Tweak the cost of elementwise stores
When the vectoriser scalarises a strided store, it counts one
scalar_store for each element plus one vec_to_scalar extraction
for each element. However, extracting element 0 is free on AArch64,
so it should have zero cost.
I don't have a testcase that requires this for existing -mtune
options, but it becomes more important with a later patch.
gcc/
* config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
function, split out from...
(aarch64_detect_vector_stmt_subtype): ...here.
(aarch64_add_stmt_cost): Treat extracting element 0 as free.
Diffstat (limited to 'gcc/doc/invoke.texi')
0 files changed, 0 insertions, 0 deletions