r229983 - in /trunk/gcc: ChangeLog bb-reorder.c

segher@gcc.gnu.org segher@gcc.gnu.org
Mon Nov 9 03:57:00 GMT 2015


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



More information about the Gcc-cvs mailing list