This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: Profile driven specialization of indirect/virtual calls
On 12/13/06, Jan Hubicka <email@example.com> wrote:
> > 3) STAGE using profile:
> > For every checked indirect/virtual call determine if most common pid of
> > function/class method has probability more than 50%. If yes modify code
> > of
> > this call to:
> > if (actual_callee_addres == addres_of_most_common_function/method)
> > do direct call
> > else
> > old call
> >Bootstrapped and regtested on x86_64-unknown-linux-gnu, i686-linux.
> It would be nice to have some testcase for C and C++, at least for
> instrumentation. Bonus points if you can test for a successful
> with -fprofile-use.
There are two testcases (one C and one C++) in the patch.
Doh, sorry. I only looked at the changelog.