This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ipa-branch] Devirtualization
- From: Mircea Namolaru <NAMOLARU at il dot ibm dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gcc-patches at gcc dot gnu dot org, hubicka at ucw dot cz, jh at suse dot cz
- Date: Mon, 19 Sep 2005 17:44:16 +0200
- Subject: 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.
Mircea