This is the mail archive of the 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_EXPR lowering

On Sat, Nov 01, 2003 at 04:55:00PM +0100, Jan Hubicka wrote:
> > what advantage does this exactly have? I have no objections against
> > this or any other scheme, but it seems largely equivalent with my
> > approach (except that it is less consistent with the way how COND_EXPRs
> > are handled).

Yours seemd unnecessarily complex.  Maintaining the correspondence
took a lot of code and a lot of memory references.

> > If we want to break this consistency, would not it be
> > better to rather implement some representation that will make the
> > manipulation with switch_exprs easier?

I can't think of any way that would be easier.  A vector with
all of the cases.  What could be simpler?

> I was just playing around the idea of replacing these low level control
> branches by specialized nodes, like COND_JUMP taking arugment of
> condition and two CFG edges.  In such was we avoid a lot of unnecesary
> memory references (the goto statements and labels).



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