https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103429
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |tree-optimization CC| |marxin at gcc dot gnu.org --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Sounds like if-to-switch / switch conversion could help. Note that GCC converts large switches into binary if trees in some cases as well.