[Bug middle-end/70861] Improve code generation of switch tables

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 28 19:43:00 GMT 2016


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think we should turn this into the following:

((unsigned)a) <= 9 ? table[a] : (a == 110 ? 27 : 77);

That is pull out the 110/default case so table would be small.


More information about the Gcc-bugs mailing list