This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Shrink size of df_mw_ref and df_ref
- From: Richard Guenther <rguenther at suse dot de>
- To: Richard Sandiford <rsandifo at nildram dot co dot uk>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 29 Jun 2007 10:32:50 +0200 (CEST)
- Subject: Re: Shrink size of df_mw_ref and df_ref
- References: <876457jja6.fsf@firetop.home>
On Fri, 29 Jun 2007, Richard Sandiford wrote:
> On #gcc yesterday, Richard Guenther noticed a way of shrinking the
> df_mw_ref and df_ref structures. We have two enums side-by-side,
> one currently 2 bits in size and one currently 12 bits. Treating them
> as bitfields in df_mw_reg will save 32 bits on a 32-bit host and 64 bits
> on a 64-bit host. The same is true for df_ref once regno is moved to be
> with the other integer fields.
>
> Bootstrapped & regression-tested on x86_64-linux-gnu. OK to install?
This is ok.
Thanks,
Richard.
>
> (Note that this patch applies on top of my earlier subreg one,
> with the "loc" field already removed from df_mw_hardreg.)
>
> Richard
>
>
> 2007-xx-xx Richard Sandiford <rsandifo@nildram.co.uk>
> Richard Guenther <rguenther@suse.de>
>
> gcc/
> * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
> into bitfields.
> (df_ref): Likewise. Put regno with other integer fields.