This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] RFC: Making control flow more explicit


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]