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]
Other format: [Raw text]

Re: -fobey-inline (was Re: gcc and inlining)


> On the other hand, inlining a function can create great opportunities for
> constant folding.  This is the point where gcc is currently very weak
> because it bases its heuristics on the unfolded size of the inline
> function.

Good point, and sometimes you write an inlined function knowing that
it will collapse when inlined, and this is a case where you really
do know better than the compiler.


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