https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091
--- Comment #16 from rguenther at suse dot de <rguenther at suse dot de> --- On Thu, 17 Oct 2024, andi at firstfloor dot org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 > > --- Comment #15 from andi at firstfloor dot org --- > An upper limit has the problem that very large switches may never get > the bitmasks or the jump clusters. Would be good to have a heuristic > that still works for them. Agreed, but those kind of limits we have all over the place in the compiler. There's even -Wmissed-optimization which is supposed to indicate whenever we disable sth because of such limit, show the limit and thus tell the user what he'd need to do to get the optimization.