This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: REG_N_REFs cleanup
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: REG_N_REFs cleanup
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 21 Jun 2001 14:27:33 -0700
- Cc: gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- References: <20010620174702.H28759@atrey.karlin.mff.cuni.cz>
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~