[PATCH] Pack alias_set_entry

Richard Guenther rguenther@suse.de
Thu Mar 6 09:13:00 GMT 2008


With Ians change of alias_set_type to int this shrinks the size 
of the structure by 8 bytes on x86_64.  Committed as obvious.

Richard.

2008-03-06  Richard Guenther  <rguenther@suse.de>

	* alias.c (struct alias_set_entry): Move has_zero_child field
	to pack with alias_set.

Index: alias.c
===================================================================
*** alias.c	(revision 132966)
--- alias.c	(working copy)
*************** struct alias_set_entry GTY(())
*** 133,138 ****
--- 133,142 ----
    /* The alias set number, as stored in MEM_ALIAS_SET.  */
    alias_set_type alias_set;
  
+   /* Nonzero if would have a child of zero: this effectively makes this
+      alias set the same as alias set zero.  */
+   int has_zero_child;
+ 
    /* The children of the alias set.  These are not just the immediate
       children, but, in fact, all descendants.  So, if we have:
  
*************** struct alias_set_entry GTY(())
*** 141,150 ****
       continuing our example above, the children here will be all of
       `int', `double', `float', and `struct S'.  */
    splay_tree GTY((param1_is (int), param2_is (int))) children;
- 
-   /* Nonzero if would have a child of zero: this effectively makes this
-      alias set the same as alias set zero.  */
-   int has_zero_child;
  };
  typedef struct alias_set_entry *alias_set_entry;
  
--- 145,150 ----



More information about the Gcc-patches mailing list