This is the mail archive of the gcc@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]

Re: INTEGRATE_THRESHOLD ever changed?


Joe Buck wrote:

> > The macro INTEGRATE_THRESHOLD is defined and documented as a possibly
> > target-specific heuristic to help decide when to inline functions.
> > However, I don't see that any target actually uses anything but the
> > default formula, which is 8 * (8 + num_arguments) instructions.
> 
> Actually, a different formula is used if -Os is supplied, giving a smaller
> threshold (inlining can still make sense when optimizing for space where
> the function is very small, something that is common for C++ member
> functions), but I guess you know about that one.  (see the definition in
> integrate.c).

Yeah, I was simplifying the background a bit.

> I see a comment saying "This is overridden on RISC machines" -- if that's
> a lie, the comment should be changed.

Grepping through all the sources and subdirs didn't show me *anything*
that changed it, so if it's being overridden on RISC machines, it must
done in some way that's too subtle for me to see it - wouldn't be the
first time that's happened though! :-)

Stan

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