]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Remove vectype from latency tests
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 12 Nov 2021 17:33:00 +0000 (17:33 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 12 Nov 2021 17:33:00 +0000 (17:33 +0000)
commit26122469dff16a15f7f0eaa9bc7757d53b253f8b
treef9a8529c662b276beff01e2d2d343493f64b143e
parent15aba5a67c61a005497ddad766377889d2442df6
aarch64: Remove vectype from latency tests

This patch gets the scalar mode of a reduction operation from the
gimple stmt rather than the vectype.  This makes it more suitable
for use in scalar costs.

gcc/
* config/aarch64/aarch64.c (aarch64_sve_in_loop_reduction_latency):
Remove vectype parameter and get floatness from the type of the
stmt lhs instead.
(arch64_in_loop_reduction_latency): Likewise.
(aarch64_detect_vector_stmt_subtype): Update caller.
(aarch64_vector_costs::count_ops): Likewise.
gcc/config/aarch64/aarch64.c