https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71550
--- Comment #5 from Jeffrey A. Law <law at gcc dot gnu.org> --- Author: law Date: Mon Oct 3 19:28:24 2016 New Revision: 240727 URL: https://gcc.gnu.org/viewcvs?rev=240727&root=gcc&view=rev Log: PR tree-optimization/71550 PR tree-optimization/71403 * tree-ssa-threadbackward.c: Include tree-vectorizer.h (profitable_jump_thread_path): Also return boolean indicating if the realized path will create an irreducible loop. Remove loop depth tests from 71403. (fsm_find_control_statement_thread_paths): Remove loop depth tests from 71403. If threading will create an irreducible loop, then throw away loop iteration and related information. PR tree-optimization/71550 PR tree-optimization/71403 * gcc.c-torture/execute/pr71550.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/execute/pr71550.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-threadbackward.c