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]
Other format: [Raw text]

Re: Shrink size of df_mw_ref and df_ref


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.


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