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

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Mon Nov  9 03:57:19 2015
New Revision: 229983

URL: https://gcc.gnu.org/viewcvs?rev=229983&root=gcc&view=rev
Log:
Fix bb-reorder problem with degenerate cond_jump (PR68182)

The code mistakenly thinks any cond_jump has two successors.  This is
not true if both destinations are the same, as can happen with weird
patterns as in the PR.


        PR rtl-optimization/68182
        * gcc/bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
        branch with only one successor just like unconditional branches.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/bb-reorder.c

Reply via email to