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] Eliminate more dead PHIs


> 
> A few weeks ago I noticed that we were leaving PHI nodes for virtual
> variables in the IL when the result of the PHI was never used.
> 
> I finally looked at it in more depth today.  Would you believe that
> more than 80% of the PHI nodes in the dce1 dumpfile for alias.c are
> are for dead virtual variables!  Egad.

Duh!
> 
> Zdenek's changes help, but only slightly.
> 
> We never need to consider a PHI for a virtual variable inherently 
> necessary -- and that little trick eliminates a ton of totally
> useless PHI nodes.  Whee.

Sounds very cool!
Any performance numbers by any chance?
Won't we end up re-discovering them by subsequent SSA passes?

Honza


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