This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] RFC: Making control flow more explicit
- From: Richard Henderson <rth at redhat dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 7 Aug 2003 14:24:40 -0700
- Subject: Re: [tree-ssa] RFC: Making control flow more explicit
- References: <1060205876.3122.55.camel@frodo.toronto.redhat.com>
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~