This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Profile driven specialization of indirect/virtual calls
Hi,
this patch does not handle inter-module calls. It works with
-fwhole-program -combine gcc flags but this flags are currently
supported only for C frontend now.
Tomas
> Hi Tomas,
>
> How does this patch handle indirect calls across files ?
> e.g. the caller and the callee are in different source files.
>
> This particular optimization will be most effective and useful
> when combined with LTO, and for various reasons,
> it would be nice if the profile collection (-fprofile-generate)
> doesn't have to use LTO as well.
>
> Seongbae
>
> On 12/13/06, Tomas Bily <tbily@suse.cz> wrote:
> >Hi,
> >
> >> >> It would be nice to have some testcase for C and C++, at least for
> >> >> successful
> >> >> instrumentation. Bonus points if you can test for a successful
> >> >> transformation
> >> >> with -fprofile-use.
> >> >
> >> >There are two testcases (one C and one C++) in the patch.
> >>
> >> Doh, sorry. I only looked at the changelog.
> >
> >sorry. I forgot add them to changelog.
> >
> >Tomas
> >
>
>
> --
> #pragma ident "Seongbae Park, compiler, http://seongbae.blogspot.com"