This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ and inlining
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: rguenth at tat dot physik dot uni-tuebingen dot de (Richard Guenther)
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 24 Jun 2004 11:52:40 -0400 (EDT)
- Subject: Re: C++ and inlining
>
> 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