https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69196
--- Comment #13 from Jeffrey A. Law <law at gcc dot gnu.org> --- Author: law Date: Tue Mar 1 21:46:58 2016 New Revision: 233866 URL: https://gcc.gnu.org/viewcvs?rev=233866&root=gcc&view=rev Log: PR tree-optimization/69196 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths): Do count some PHIs in the thread path against the insn count. Decrease final statement count by one as the control statement in the last block will get removed. Remove special cased code for handling PHIs in the last block. PR tree-optimization/69196 * gcc.dg/tree-ssa/vrp46.c: Twiddle threading params to keep it from duplicating code and spoiling the expected output. Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/vrp46.c trunk/gcc/tree-ssa-threadbackward.c