https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65735
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sat Apr 11 17:32:54 2015 New Revision: 222011 URL: https://gcc.gnu.org/viewcvs?rev=222011&root=gcc&view=rev Log: PR tree-optimization/65735 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths): Remove visited_phis argument, add visited_bbs, avoid recursing into the same bb rather than just into the same phi node. (thread_through_normal_block): Adjust caller. * gcc.c-torture/compile/pr65735.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr65735.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-threadedge.c