[PATCH] Avoid more irreducible loops in FSM threader
authorJeff Law <law@gcc.gnu.org>
Mon, 2 Nov 2015 23:25:06 +0000 (16:25 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 2 Nov 2015 23:25:06 +0000 (16:25 -0700)
commitb89410efd10e437b91fc55e772b9004a65a7910c
treeb50082f4a1d618955ea699566fc26bd4874bb16f
parent58b2d87ea1d03d56e220e2cabfbee11561ea05c4
[PATCH] Avoid more irreducible loops in FSM threader

* tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
cases where the loop latch edge is in the middle of an FSM
path.

* gcc.dg/tree-ssa/ssa-thread-11.c: Verify that we do not have
irreducible loops in the CFG.

From-SVN: r229685
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-11.c
gcc/tree-ssa-threadupdate.c