]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Restrict issue heuristics to inner vector loop
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 6 Aug 2021 14:36:57 +0000 (15:36 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 6 Aug 2021 14:36:57 +0000 (15:36 +0100)
commit65b5ab4744e7f6e77df544c3796f9dc274737cf6
tree13840a76a70a4aaa53a2f62ec3088006dcb1343f
parent54c0d0dd9a85652003aa2c60e1ad245001e60d8c
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.

(cherry picked from commit 9690309baf8294b0512b55b133bc102dc0dac5b5)
gcc/config/aarch64/aarch64.c