Make more use of END_REGNO
commitb4104dfde5420687243b8bf067c89b244759eb1c
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Sep 2017 13:28:18 +0000 (12 13:28 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Sep 2017 13:28:18 +0000 (12 13:28 +0000)
tree302e64c7ba17ddd26f1d65d47517500f88a16d27
parent10fa8f764e615fa0d230c13a41ad39b2ea6bdf95
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@252011 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/frv/frv.c
gcc/config/v850/v850.c
gcc/reload.c
gcc/reload1.c