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 to improve optimization at ssa rewrite time


On Tue, 2003-05-13 at 15:26, Daniel Berlin wrote:
> > This is very useful in conjunction with expression temporaries, which
> > produce a lot of redundant statements.
> 
> 
> Actually, as I pointed out to Diego privately, doing all these 
> redundancy eliminations is really screwing up PRE.
> I've come up with tons of cases where we'd be able to eliminate the 
> entire function if we didn't do these optimizations when going into SSA 
> (because PRE would enable CCP to constant convert everything), but we 
> are left with computations because we did.
> 
> As soon as PRE is on by default, i'm going to be looking at switching 
> off some of these into-SSA optimizations.


How much of that will be taken care of though when we start propagating
constants into the PHI nodes?  Most of the (albeit somewhat few) cases
I've seen will then allow the PHI nodes to fold, and then things do
dissappear just the same.

Andrew


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