[PATCH GCC][2/6]Compute available register for each register classes

Bin Cheng Bin.Cheng@arm.com
Fri May 12 11:28:00 GMT 2017


Hi,
Currently available/clobber registers are computed only for GENERAL_REGS, this
patch extends it for all reg pressure classes.  It also updates existing uses
in various places.

Bootstrap and test on x86_64 and AArch64.  Is it OK?

Thanks,
bin
2017-05-10  Bin Cheng  <bin.cheng@arm.com>

	* cfgloop.h (struct target_cfgloop): Change x_target_avail_regs and
	x_target_clobbered_regs into array fields.
	(init_avail_clobber_regs): New declaration.
	* cfgloopanal.c (memmodel.h, ira.h): Include header files.
	(init_set_costs): Remove computation for old x_target_avail_regs and
	x_target_clobbered_regs fields.
	(init_avail_clobber_regs): New function.
	(estimate_reg_pressure_cost): Update the uses.
	* toplev.c (cfgloop.h): Update comment why the header file is needed.
	(backend_init_target): Call init_avail_clobber_regs.
	* tree-predcom.c (memmodel.h, ira.h): Include header files.
	(MAX_DISTANCE): Update the use.
	* tree-ssa-loop-ivopts.c (determine_set_costs): Update the uses.
	(determine_set_costs): Ditto.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-init-available-regs-20170316.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170512/1ae8f4c5/attachment.txt>


More information about the Gcc-patches mailing list