This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Sigh. Inlining heuristics.
- To: mark at codesourcery 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:30:48 EDT
- Cc: gcc at gcc dot gnu dot org
I agree. We did this for compatible with the RTL inliner -- which
had no limit at all until some time back we made it have 10,000
instructions as a limit, to approximate the old behavior but have
*some* cap.
Huh? The RTL inliner always had a limit, and a relatively small one.
>From gcc 2.8.1:
/* Default max number of insns a function can have and still be inline.
This is overridden on RISC machines. */
#ifndef INTEGRATE_THRESHOLD
#define INTEGRATE_THRESHOLD(DECL) \
(8 * (8 + list_length (DECL_ARGUMENTS (DECL))))
#endif