https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107767
--- Comment #13 from Martin Liška <marxin at gcc dot gnu.org> --- > As a hack I've removed them manually: > FOR_EACH_BB_FN (bb, cfun) > { > gimple_stmt_iterator gsi = gsi_after_labels (bb); > if (!gsi_end_p (gsi) && gimple_code (gsi_stmt (gsi)) == GIMPLE_PREDICT) > gsi_remove (&gsi, true); > } > in pass_if_to_switch::execute before return TODO_cleanup_cfg;, but that > didn't help. @Richi: Can you please take a look why TODO_cleanup_cfg doesn't help us here?