Make more use of END_REGNO
authorRichard Sandiford <richard.sandiford@linaro.org>
Tue, 12 Sep 2017 13:28:18 +0000 (13:28 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 12 Sep 2017 13:28:18 +0000 (13:28 +0000)
commit036620db8a9f9e4d807de8ba07a7004aa02a9941
tree302e64c7ba17ddd26f1d65d47517500f88a16d27
parent462a99aa98416135d2675d07d32f7ce234287983
Make more use of END_REGNO

An upcoming patch will convert hard_regno_nregs into an inline
function, which in turn allows hard_regno_nregs to be used as the
name of a targetm field.  This patch rewrites uses that are more
easily (and efficiently) written as END_REGNO.

2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* config/frv/frv.c (FOR_EACH_REGNO): Use END_REGNO instead of
hard_regno_nregs.
* config/v850/v850.c (v850_reorg): Likewise.
* reload.c (refers_to_regno_for_reload_p): Likewise.
(find_equiv_reg): Likewise.
* reload1.c (reload_reg_reaches_end_p): Likewise.

From-SVN: r252011
gcc/ChangeLog
gcc/config/frv/frv.c
gcc/config/v850/v850.c
gcc/reload.c
gcc/reload1.c