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] Switch stmts and inserting on edges


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


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