Mark Wielaard <m...@klomp.org> writes: > commit 56946c801a7c ("gimple: Add limit after which slower switchlower > algs are used [PR117091] [PR117352]") introduced a limit on the number > of cases of a switch. It also bails out on finding jump tables if the > switch is too large. This introduces a compile time regression during > bootstrap. A riscv bootstrap takes hours longer. Particularly > insn-attrtab.cc will take hours instead of minutes. Fix this by not > applying the switch size limit on jump tables. > > An alternative would be to implement greedy switch clustering for jump > tables as is done for switch bitmap clustering.
Or just increase the limit for now. But looks ok to me. -Andi