https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84908
Andy Lutomirski <luto at kernel dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |luto at kernel dot org --- Comment #9 from Andy Lutomirski <luto at kernel dot org> --- 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.