Function call inlining

Andrew Haley aph@redhat.com
Fri Aug 28 07:59:00 GMT 2015


On 08/27/2015 04:34 PM, Matwey V. Kornilov wrote:
> I use gcc-4.8.2 and see that arr[index](std::forward<T>(p), func) call
> is not inlined.
> The question here is the following. All function pointers are known at
> compile time. So, why don't expand this code into analogous to the
> following?

I suspect that no-one has explained because no-one understands why
anyone would want to make such an "optimization".

Andrew.



More information about the Gcc-help mailing list