diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-09-12 13:28:27 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-09-12 13:28:27 +0000 |
commit | 16b9e38b7e3e0acb5826b47822543218f2df8986 (patch) | |
tree | cb773aeb0a0539470b01a2b8d572da3b6dfe2742 /gcc/lra-remat.c | |
parent | b4104dfde5420687243b8bf067c89b244759eb1c (diff) | |
download | gcc-16b9e38b7e3e0acb5826b47822543218f2df8986.tar.gz |
Make more use of end_hard_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 can use
end_hard_regno instead.
2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
* config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Use
end_hard_regno instead of hard_regno_nregs.
* config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
* config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Likewise.
* config/visium/visium.c (visium_hard_regno_mode_ok): Likewise.
* ira-color.c (improve_allocation): Likewise.
* lra-assigns.c (find_hard_regno_for_1): Likewise.
* lra-lives.c (mark_regno_live): Likewise.
(mark_regno_dead): Likewise.
* lra-remat.c (operand_to_remat): Likewise.
* lra.c (collect_non_operand_hard_regs): Likewise.
* postreload.c (reload_combine_note_store): Likewise.
(move2add_valid_value_p): Likewise.
* reload.c (regno_clobbered_p): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@252012 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra-remat.c')
-rw-r--r-- | gcc/lra-remat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/lra-remat.c b/gcc/lra-remat.c index 50582dc68ff..efc9ae2d715 100644 --- a/gcc/lra-remat.c +++ b/gcc/lra-remat.c @@ -367,8 +367,7 @@ operand_to_remat (rtx_insn *insn) if (reg2->type == OP_OUT && reg->regno <= reg2->regno && (reg2->regno - < (reg->regno - + hard_regno_nregs[reg->regno][reg->biggest_mode]))) + < (int) end_hard_regno (reg->biggest_mode, reg->regno))) return -1; } /* Check hard coded insn registers. */ |