The following is said to fix a 482.sphinx3 regression. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.
Richard. 2017-09-18 Richard Biener <rguent...@suse.de> PR tree-optimization/82220 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Exclude epilogue niters from the min_profitable_iters compute. Index: gcc/tree-vect-loop.c =================================================================== --- gcc/tree-vect-loop.c (revision 252907) +++ gcc/tree-vect-loop.c (working copy) @@ -3663,8 +3663,8 @@ vect_estimate_min_profitable_iters (loop min_profitable_iters); /* We want the vectorized loop to execute at least once. */ - if (min_profitable_iters < (vf + peel_iters_prologue + peel_iters_epilogue)) - min_profitable_iters = vf + peel_iters_prologue + peel_iters_epilogue; + if (min_profitable_iters < (vf + peel_iters_prologue)) + min_profitable_iters = vf + peel_iters_prologue; if (dump_enabled_p ()) dump_printf_loc (MSG_NOTE, vect_location,