https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102121
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=45830 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So switch conversion DOES have integer compression BUT the limits are way high: if (len < (optimize_bb_for_size_p (gimple_bb (m_switch)) ? 2 : 32)) return type; This was added with r0-104796-g8e97bc2bdb4013 (PR 45830) with those exact special numbers and no way to tune it.