C++ and inlining

Andrew Pinski pinskia@physics.uc.edu
Thu Jun 24 16:00:00 GMT 2004


> 
> It seems the topic has to be raised again.  The problem is the same as
> discussed during the last discussion - basically the used ought to have
> more control over what gets inlined (or not).  I want to focus on _hints_
> to the compiler, not forcing it, as that may be impossible in some
> circumstances.
> 
> So, in my case there is CFD using Expression Templates and, frankly, gcc
> is lousy in optimizing the math kernel loops due to not doing enough
> inlining inside the loops.

I think it is better to wait untill the CFG inliner comes about so then inline
optimizated functions and maybe this complaint will no longer be here
and the use of leafify is no longer needed.

Andrew Pinski



More information about the Gcc mailing list