This is the mail archive of the gcc-patches@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] Patch ping


> On Thu, Dec 04, 2003 at 10:31:02PM +0100, Zdenek Dvorak wrote:
> > > 	dest = test ? &&L1 : &&L2
> > 
> > but this should not have a void type, right?
> 
> True, but it does show that COND_EXPR with labels in the
> arms means two different things at different times.
> 
> Which is wrong.
> 
> I'm much more receptive to the CF_EXPR idea than this.

I tend to like this sollution too.  I am not 100% sure I like the idea
of combining conditinoal jumps and switch statements to one node, but
given that it don't waste memory nor make the discovery of these
dificult, it is probably not big deal.
Only advantages of combining I see is that it saves one tree code and
perhaps it would make it easier to convert simple switch statements to
condjumps, not very sure about this.

Honza
> 
> 
> r~


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