]> gcc.gnu.org Git - gcc.git/commit
aarch64: Ignore inductions when costing vector code
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 26 Mar 2021 16:08:37 +0000 (16:08 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 26 Mar 2021 16:08:37 +0000 (16:08 +0000)
commite4180ab2fea0d3e8010f23b5e73095ac13cedafa
treec8c8314edec0ca3007c0215746407e06c998c742
parent99f94ae5018e915d0c1db1b6d4110d68bc4d242e
aarch64: Ignore inductions when costing vector code

In practice it seems to be better not to cost a vector induction.
The scalar code generally needs the same induction but doesn't
cost it, making an apples-for-apples comparison harder.  Most
inductions also have a low latency and their cost usually gets
hidden by other operations.

Like with the previous patches, this one only becomes active if
a CPU selects use_new_vector_costs.  It should therefore have
a very low impact on other CPUs.

gcc/
* config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
Assume a zero cost for induction phis.
gcc/config/aarch64/aarch64.c
This page took 0.06581 seconds and 5 git commands to generate.