This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inlining heuristics


Hi,

On Tue, 13 May 2003, Brad Lucier wrote:

> The heuristic is applied at the expression level.  The default
> inlining-limit is 300%, i.e., inlining is allowed to triple the size of
> the function.

I feel that this is indeed also a fairly useful heuristic.  I.e. making
the allowable size of inlined functions depend on the initial size of
the calling function.  It would better reflect the relative saving of
inlining compared to the overall overhead of the caller.


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]