This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] SWITCH_EXPR lowering
On Mon, 2003-10-27 at 11:55, Richard Henderson wrote:
> On Mon, Oct 27, 2003 at 01:12:03PM +0100, Jan Hubicka wrote:
> > This may be nice at least as intermediate step, however it seems to me
> > that we want to have actual decomposition of switch into tablejumps and
> > condjumps explicit in the gimple form.
>
> Well, the form I'm asking for for SWITCH_EXPR _is_ a tablejump.
>
> > Also it seems to me that we should take seriously memory requiriements
> > of gimple form ...
>
> Agreed, though we've not really started thinking about this yet.
>
> > What about introducing COND_GOTO/GIMPLE_SWITCH_EXPR/TABLEJUMP_EXPR to
> > represent control flow in lowlevel way and avoid nesting generic stuff?
>
> We'll see.
Is anyone actively working on this right now, or should I take a pop at
it? we should have it soonish.
Right now, I vote for simple lowering as rth suggests. Other things can
be looked at later, especially as it relates to generic.
Andrew
Andrew