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

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andy Lutomirski from comment #9)
> I haven't fully dug into this, but I do one one immediate question: why is
> GCC generating a jump table for a five-entry switch statement if retpolines
> are on?  This has got to be a *huge* performance loss.  The retpoline
> sequence is very, very slow, and branches aren't that slow.  A five-entry
> switch is only three branches deep.

I opened:

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

Reply via email to