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: [ipa-branch] Devirtualization


> >> This optimization works only for C++ code. To enable it use the option 
> >> -fipa-cha. It is assumes that all the application files are compiled 
> >> together. 
> 
> > You probably shouldn't assume this, and instead check -fwhole-program is
> > set to be sure.
> > If it isn't, you should be restricting yourself to only those types that
> > don't escape (which, in C++, is probably not very many).  The ipa type
> > escape info can give you that information very easily.
> 
> You are right. As the ipa type escape analysis is on SSA representation 
> and this optimization is at gimple level (before the inlining), I would 
> wait until the interprocedural framework moves from gimple to SSA 
> representation.
On IPA branch the IPA passes are already working on SSA representation.

Honza
> 
> Mircea


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