INTEGRATE_THRESHOLD ever changed?
Stan Shebs
shebs@apple.com
Fri Mar 17 12:33:00 GMT 2000
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
More information about the Gcc
mailing list