r254327 - in /trunk/gcc: ChangeLog config/aarch...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Wed Nov 1 20:47:00 GMT 2017


Author: rsandifo
Date: Wed Nov  1 20:47:50 2017
New Revision: 254327

URL: https://gcc.gnu.org/viewcvs?rev=254327&root=gcc&view=rev
Log:
[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>

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/aarch64.c



More information about the Gcc-cvs mailing list