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: [C PATCH] Discard P - (P + CST) optimization in pointer_diff (PR c/61240)


> 
> err yeah, I guess we'd need to rework things so front end just creates
> functions for each variable and then middle end pass creates function
> that call all of them if necessary.

There is already code for that in cdtor optimization pass (ipa.c), but I think
C++ does its own wrapper to solve orderin issues - but I am not sure abou thtat.
Never really cared why those in-frontend wrappers are produced.

Honza
> 
> > Should not be hard to add though. Need to read back why inlining would
> > be undesriable here - not inliing ctors in general would indeed be problematic
> > (preventing SRA and more stuff)
> 
> yeah, doesn't seem that hard.
> 
> Trev
> 
> > 
> > Honza
> > > 
> > > Trev
> > > 
> > > > 
> > > > Richard.


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