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]

shrink regrename.c: struct du_chain


struct du_chain in regrename.c has 2 bitfields, by making 
the "enum reg_class class" member a bitfield too, it is possible to
decrease the size by 4 bytes on a 32-bit machine. 


2002-12-09  Dan Nicolaescu  <dann@ics.uci.edu>

	* regrename.c (struct du_chain): Change class to be a
          bitfield.



Index: regrename.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/regrename.c,v
retrieving revision 1.63
diff -c -3 -p -c -r1.63 regrename.c
*** regrename.c	4 Nov 2002 16:57:02 -0000	1.63
--- regrename.c	10 Dec 2002 02:54:29 -0000
*************** struct du_chain
*** 49,55 ****
  
    rtx insn;
    rtx *loc;
!   enum reg_class class;
    unsigned int need_caller_save_reg:1;
    unsigned int earlyclobber:1;
  };
--- 49,55 ----
  
    rtx insn;
    rtx *loc;
!   ENUM_BITFIELD(reg_class) class:16;
    unsigned int need_caller_save_reg:1;
    unsigned int earlyclobber:1;
  };


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