https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80747

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42948
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42948&action=edit
gcc8-pr80747.patch

Untested fix.  I actually think instead of having some magic default we should,
in case we need to ignore the ENTRY succ edge in the greedy algorithm and thus
last_tail remains ENTRY, use the partition of the ENTRY successor bb.

And there is another bug that we don't copy the partition early enough and thus
create EDGE_CROSSING and mark the jump as crossing, then we copy the partition,
but nothing undoes the edge flags set to EDGE_CROSSING or CROSSING_JUMP_P on
the jump.

Reply via email to