aarch64: Restrict issue heuristics to inner vector loop
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 3 Aug 2021 12:00:48 +0000 (13:00 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 3 Aug 2021 12:00:48 +0000 (13:00 +0100)
commit9690309baf8294b0512b55b133bc102dc0dac5b5
treecbe02646cd0cf59247755934e76c88d775378630
parent028059b46ec9aef7dd447792c579f35396751068
aarch64: Restrict issue heuristics to inner vector loop

The AArch64 vector costs try to take issue rates into account.
However, when vectorising an outer loop, we lumped the inner
and outer operations together, which is somewhat meaningless.
This patch restricts the heuristic to the inner loop.

gcc/
* config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
record issue information for operations that occur in the
innermost loop.
gcc/config/aarch64/aarch64.c