[improved-aliasing]: Reduce memory usage of memory tags

Daniel Berlin dberlin@dberlin.org
Mon Sep 26 15:31:00 GMT 2005


This makes memory tags into their own type of DECL (inheriting from
tree_minimal_decl), reducing memory usage of the actual tag variables by
~70%. They used to be ~90 bytes per tag, now it's 36.  It also removes
the mem_tag_kind member of var_ann, and allows us to tell tags apart
from regular vars without the variable annotation.

Tags could be made smaller by splitting up decl_minimal, or making them
non-decl nodes entirely.  I have no plans to do either.

Bootstrapped and regtested on i686-pc-linux-gnu.
Applied to improved-aliasing-branch.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: tagchange.diff
Type: text/x-patch
Size: 35212 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050926/090a94c7/attachment.bin>


More information about the Gcc-patches mailing list