This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Sigh. Inlining heuristics.
- To: dewar at gnat dot com
- Subject: Re: Sigh. Inlining heuristics.
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Tue, 10 Jul 01 06:20:12 EDT
- Cc: gcc at gcc dot gnu dot org
Of course if you really make a "huge function", it is likely to have
poorer performance due to icache pressure.
That strongly depends on the loop structure of that function. If we have
a function that's straight-line code and calls, say, ten functions that
aren't called elsewhere, inlining those calls, no matter what the sizes of
the functions, is a performance win, though admittedly probably a small one.