Re: profile-directed optimizations

2008-09-21 Thread Bruno Haible
Paolo Bonzini wrote: > > Says the GCC 4.3.0 doc. > > My experience is different. In fact, in 4.4.0 it will even use it for > instruction selection in some cases. Then it's a doc bug. The GCC doc in svn (invoke.texi line 6589) says about the effects of -fprofile-use: The following options a

Re: profile-directed optimizations

2008-09-21 Thread Paolo Bonzini
Bruno Haible wrote: > 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

Re: profile-directed optimizations

2008-09-21 Thread Bruno Haible
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