This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inlining heuristics for C++
- To: Hartmut Schirmer <hartmut dot schirmer at arcormail dot de>
- Subject: Re: Inlining heuristics for C++
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Thu, 12 Jul 2001 07:27:07 +1000
- Cc: gcc at gcc dot gnu dot org
- References: <oupu20ldt21.fsf@pigdrop.muc.suse.de> <01071023132600.00255@hallo>
On 10-Jul-2001, Hartmut Schirmer <hartmut.schirmer@arcormail.de> wrote:
> We also shouldnīt inline functions in branches that arenīt
> predicted to be excecuted, at least take the __buildin_expect
> into account here.
That reminds me of another heuristic: don't inline functions
marked __attribute__((noreturn)).
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.