This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Sigh. Inlining heuristics.
- To: aoliva at redhat dot com, dewar at gnat dot com
- Subject: Re: Sigh. Inlining heuristics.
- From: dewar at gnat dot com
- Date: Tue, 10 Jul 2001 21:52:51 -0400 (EDT)
- Cc: dan at cgsoftware dot com, gcc at gcc dot gnu dot org, mark at codesourcery dot com,torvalds at transmeta dot com
<<We already do. My proposal is only for the default value. And it's
hard to tell whether it's really going to give worse performance.
There's a cache hit, indeed, if you inline the same large function
into multiple other functions, but if you call it only once, and you
get it inlined, you'd be saving the function-call overhead without any
cache hit, as long as branch prediction doesn't mis-predict entering
the inlined function code. Or so I think, I don't know much about
this stuff :-)
>>
Any increase in code size potentially increases icache pressure.