Re: [patch] measurements, numbers about CONFIG_OPTIMIZE_INLINING=y impact

Richard Guenther
2009-01-09T19:09:46Z

On Fri, Jan 9, 2009 at 6:54 PM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
>
> On Fri, 9 Jan 2009, Matthew Wilcox wrote:
>>
>> That seems like valuable feedback to give to the GCC developers.
>
> Well, one thing we should remember is that the kernel really _is_ special.

(sorry for not threading properly here)

Linus writes:

"Thirdly, you're just replacing _one_ random gcc choice with _another_
random one.

What happens when you say -fno-inline-functions-called-once? Does it
disable inlining for those functions IN GENERAL, or just for the LARGE
ones? See?"

-fno-inline-functions-called-once disables the heuristic that always inlines
(static!) functions that are called once. Other heuristics still
apply, like inlining
the static function if it is small. Everything else would be totally
stupid - which
seems to be the "default mode" you think GCC developers are in.

Richard.