[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: profile-directed optimizations

From: Bruno Haible
Subject: Re: profile-directed optimizations
Date: Sun, 21 Sep 2008 13:01:56 +0200
User-agent: KMail/1.5.4

Paolo Bonzini wrote:
> > But the compiler does not know that fstrcmp is called millions of time and
> > that this piece of code needs to be optimized for speed rather than for 
> > space.
> If doing profile-directed optimization, it does know.

Well, it _could_ know. But currently, GCC exploits the profile of previous
runs only for branch probabilities. It does not use it for inlining decisions.
Says the GCC 4.3.0 doc.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]