https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71785
--- Comment #5 from Segher Boessenkool <segher at gcc dot gnu.org> --- Created attachment 38847 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38847&action=edit proposed patch to bb-reorder Proposed patch. Works for the testcase in here without removing the 8 successors limitation, but that is needed in general.