aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-11-01 20:47:50 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-11-01 20:47:50 +0000
commitfe1447a1d7ed8945404176fc0941a380682e5f11 (patch)
tree0d017d8d73160a28b24aeb8961ce2c0add358ba0 /gcc/tree-complex.c
parentff1335e2080f16f9b42b9a886c8c063f869a6eed (diff)
downloadgcc-fe1447a1d7ed8945404176fc0941a380682e5f11.zip
gcc-fe1447a1d7ed8945404176fc0941a380682e5f11.tar.gz
gcc-fe1447a1d7ed8945404176fc0941a380682e5f11.tar.bz2
[AArch64] Minor rtx costs tweak
aarch64_rtx_costs uses the number of registers in a mode as the basis of SET costs. This patch makes it get the number of registers from aarch64_hard_regno_nregs rather than repeating the calcalation inline. Handling SVE modes in aarch64_hard_regno_nregs is then enough to get the correct SET cost as well. 2017-11-01 Richard Sandiford <richard.sandiford@linaro.org> Alan Hayward <alan.hayward@arm.com> David Sherwood <david.sherwood@arm.com> gcc/ * config/aarch64/aarch64.c (aarch64_rtx_costs): Use aarch64_hard_regno_nregs to get the number of registers in a mode. Reviewed-By: James Greenhalgh <james.greenhalgh@arm.com> Co-Authored-By: Alan Hayward <alan.hayward@arm.com> Co-Authored-By: David Sherwood <david.sherwood@arm.com> From-SVN: r254327
Diffstat (limited to 'gcc/tree-complex.c')
0 files changed, 0 insertions, 0 deletions