[tree-ssa] RFC: Making control flow more explicit
Richard Henderson
rth@redhat.com
Thu Aug 7 21:50:00 GMT 2003
On Wed, Aug 06, 2003 at 05:37:57PM -0400, Diego Novillo wrote:
> This one I'm undecided. The easiest is to generate a decision tree, but
> we may also want to generate a jump table.
I'd be surprised if we could do as well if we lower this to ifs.
I think we probably want to keep a multi-way branch until rtl.
But something more like
multi-goto [ 1: label1, 2: label2, 3: label3, else: label4 ];
than a switch statement per-se. You could still use SWITCH_EXPR,
probably, so long as all the labels and values are collected in
the node.
r~
More information about the Gcc
mailing list