From 6b1ce94d31733df9b0055b9e1934704d21973d77 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 18 Sep 2017 10:10:31 +0000 Subject: [PATCH] re PR tree-optimization/82220 (SPEC CPU2006 482.sphinx3 ~10% performance regression with trunk@250416) 2017-09-18 Richard Biener PR tree-optimization/82220 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Exclude epilogue niters from the min_profitable_iters compute. From-SVN: r252917 --- gcc/ChangeLog | 6 ++++++ gcc/tree-vect-loop.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index efedc341b9d..9c2a685c38e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-09-18 Richard Biener + + PR tree-optimization/82220 + * tree-vect-loop.c (vect_estimate_min_profitable_iters): Exclude + epilogue niters from the min_profitable_iters compute. + 2017-09-18 Jakub Jelinek PR target/82145 diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index c7cc79fd76d..82b6629e128 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -3663,8 +3663,8 @@ vect_estimate_min_profitable_iters (loop_vec_info loop_vinfo, 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, -- 2.30.2