This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Function call inlining
- From: Andrew Haley <aph at redhat dot com>
- To: "Matwey V. Kornilov" <matwey dot kornilov at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Fri, 28 Aug 2015 08:59:20 +0100
- Subject: Re: Function call inlining
- Authentication-results: sourceware.org; auth=none
- References: <mrnale$fhr$1 at ger dot gmane dot org>
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.