This is the mail archive of the gcc-help@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: Function call inlining


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.


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