Make more use of end_hard_regno

Jeff Law law@redhat.com
Mon Sep 11 22:11:00 GMT 2017


On 09/11/2017 11:16 AM, Richard Sandiford wrote:
> 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.
> 
> Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu.
> Also tested by comparing the testsuite assembly output on at least one
> target per CPU directory.  OK to install?
> 
> Richard
> 
> 
> 2017-09-11  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.
OK.
Jeff



More information about the Gcc-patches mailing list