Attacking quadratic behaviors associated with SWITCH_EXPR

Kazu Hirata kazu@cs.umass.edu
Mon Oct 25 14:51:00 GMT 2004


Hi Zdenek,

> statement annotations are huge, so this would indeed be a bad idea.
> I think it would be better to avoid using tree for CASE_LABEL_EXPR
> inside switch statement completely.  I.e. TREE_OPERAND (switch, 2)
> would no longer be a TREE_VEC of CASE_LABEL_EXPRs, but instead
> a wrapper tree node (of type tcc_exceptional) containing
> a VEC(case_label_type), where case_label_type would contain just the
> fields necessary for the case label.  This should also save some
> memory over the current approach, since it is a bit less bloated
> representation.

OK, I'll try this route then.

Kazu Hirata



More information about the Gcc mailing list