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] SWITCH_EXPR lowering


On Sat, 2003-11-01 at 14:50, Richard Henderson wrote:
> On Sat, Nov 01, 2003 at 04:55:00PM +0100, Jan Hubicka wrote:

> 
> > 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).
> 
> Possibly.
> 
But then we are adding uneccessary clutter to the IL. For the moment I
think we're better off simply sticking with the GENERIC COND_EXPR and
leaving the gotos the way they are. I dont like the idea of adding yet
another COND_EXPR type tree node that has the same information but in a
different format. I dont think COND_EXPR's are the root of our memory
problems, and although you might save a bit, in the overall scheme I
dont think you save enough to make it worthwhile. 

Ditching CE nodes and other mechanisms yet to be determined are more
likely to be profitable avenues.

Andrew

Andrew



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