https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122118

--- Comment #5 from Andreas Rheinhardt <andreas.rheinhardt at outlook dot com> 
---
(In reply to Richard Biener from comment #4)
> There's the missed opportunity to turn 'static int a, b' into 'static int
> a[2]' at least.  In this very special micro-benchmark case.
> 
> Confirmed as cost model thing.

This example uses pointer to ints for simplification, but the actual code where
this was encountered initializes a structure of function pointers (see e.g.
https://code.ffmpeg.org/FFmpeg/FFmpeg/src/branch/master/libavcodec/h263dsp.c#L119-L120).
Said missed opportunity does not exist there.

Reply via email to