This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Rename tree_ann to tree_ann_t
On Mon, 2004-05-17 at 18:48, Andrew MacLeod wrote:
> Wasn't it in plan at one point to examine the flags and stuff that we
> have in each annotation and push those bits either into the common part,
> or into the relevant node type? I thought the annotations were, for the
> most part, a way of making you merge-from-mainline life tremendously
> easier :-)
>
Yeah, but they are also a way of avoiding hash or other types of lookup
operations that are more expensive than a simple field access. We need
to balance between having bloated nodes with everything at hand and
skinny nodes with "expensive" lookup operations.
Moving statement annotations into each node will make them big even when
it's not strictly necessary. Now, there are some annotations like alias
info that we may want to have all through RTL.
Diego.