]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Split out aarch64_adjust_body_cost_sve
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 3 Aug 2021 12:00:45 +0000 (13:00 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 3 Aug 2021 12:00:45 +0000 (13:00 +0100)
commitb585f0112f293ace8fadc0c7ace59230140b7472
treee9deaad93d7986257ddbe78346bbe258ee4582ce
parent83d796d3e58badcb864d179b882979f714ffd162
aarch64: Split out aarch64_adjust_body_cost_sve

This patch splits the SVE-specific part of aarch64_adjust_body_cost
out into its own subroutine, so that a future patch can call it
more than once.  I wondered about using a lambda to avoid having
to pass all the arguments, but in the end this way seemed clearer.

gcc/
* config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
function, split out from...
(aarch64_adjust_body_cost): ...here.
gcc/config/aarch64/aarch64.c