[tree-ssa] Switch stmts and inserting on edges

Jason Merrill jason@redhat.com
Fri May 30 19:44:00 GMT 2003


On 30 May 2003 14:46:47 -0400, Diego Novillo <dnovillo@redhat.com> wrote:

> On Fri, 2003-05-30 at 11:23, Andrew MacLeod wrote:
>
>> Any other suggestions? I havent thought of anything I actually like....
>> 
> The problem is that SWITCH_EXPRs still have implicit semantics that are
> getting in the way.  I think this ought to be fixed by finishing Jason's
> patch to expose SWITCH_EXPRs as explicit multi-way branches, or even
> decision trees.

Agreed.

> Jason, how difficult would that change be?  I'm not proposing we do
> decision trees right off the bat.  We may want to keep these multi way
> branches until we have a pass to determine how dense the cases are.

I'm afraid it means reimplementing all of the stmt.c switch handling; case
labels are currently special because we want to use add_case_node to emit
them.  I think this is the right way to go, but it's not trivial.

Jason



More information about the Gcc mailing list