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: EON regression due to pass ordering problem (PRtree-optimize/24653)


On Thu, 2005-11-03 at 14:46 +0100, Richard Guenther wrote:
> On 11/3/05, Jan Hubicka <jh@suse.cz> wrote:
> > Hi,
> > we have over 10% regression in Eon that I think it typical enought for
> > C++ so we should solve it for 4.1.  The problem is caused by missed SRA
> > oppurtunity on startPoint variable appearing in many of it's internal
> > functions.  The missed SRA (we did SRA it in 4.0) is caused by fact that
> > originally the code after inlining functions that manipulate with it is:
> >
> > this = &startPoint;
> > this->e[0] = code;
> >
> > and so on.  Until dom1 pass we still maintain pointer "this" so the
> > startPoint must live in memory.  DCE properly transforms it into:
> >
> > this = &startPoint;
> > startPoint.e[0] = code;
> 
> http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01702.html
> 
> teaches forwprop to do this transformation (I guess there really are multiple
> uses of 'this').  I wonder why DCE does such transformation, and why
> DCE does not help the tramp3d cases I invented the forwprop change for.
I believe this is already queued for 4.2 :-)


jeff



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