This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: REG_N_REFs cleanup


On Wed, Jun 20, 2001 at 05:47:02PM +0200, Jan Hubicka wrote:
> 	* regs.h (struct reg_info_def): Add freq field.
> 	(REG_N_REFS): Update comment.
> 	(REG_FREQ): New.
> 	* regclass.c (scan_one_insn): Update REG_FREQ.
> 	* flow.c (mark_set_1): Update REG_FREQ, make REG_N_SETS unweighted.
> 	(attempt_auto_inc): Likewise.
> 	(mark_used_reg): Likewise.
> 	(try_pre_increment_1): Likewise.
> 	* local-alloc.c (struct qty): Add freq field.
> 	(alloc_qty): Set freq.
> 	(update_equiv_regs): Set REG_FREQ.
> 	(QTY_CMP_PRI): Use freq.
> 	(combine_regs): Update qty->freq.
> 	* global.c (struct allocno): Update comment for n_refs;
> 	add freq field.
> 	(local_reg_freq): New array.
> 	(global_alloc): Update freq field;
> 	allocate and initialize local_reg_freq.
> 	(allocno_compare): Use freq field.
> 	(find_reg): Likewise.
> 	* reload1.c (count_pseudo): Use freq isntead of n_refs.
> 	(count_spilled_pseudo): Likewise.

Ok.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]