From: Richard Biener Date: Fri, 11 Oct 2019 10:45:48 +0000 (+0000) Subject: re PR tree-optimization/92066 (Many vectorization tests FAIL) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d99596e3289766c392466eebb8b2f2d2f4f1bc1;p=gcc.git re PR tree-optimization/92066 (Many vectorization tests FAIL) 2019-10-11 Richard Biener PR tree-optimization/92066 PR tree-optimization/92046 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Fix bogus cost model check. From-SVN: r276876 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbc0b2fe1d9..e250c9d55d0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2019-10-11 Richard Biener + + PR tree-optimization/92066 + PR tree-optimization/92046 + * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): + Fix bogus cost model check. + 2019-10-11 Tobias Burnus * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define. diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index e2baeb02483..9a4c01d2860 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -2179,7 +2179,7 @@ vect_enhance_data_refs_alignment (loop_vec_info loop_vinfo) do_versioning = (optimize_loop_nest_for_speed_p (loop) && !loop->inner /* FORNOW */ - && flag_vect_cost_model > VECT_COST_MODEL_CHEAP); + && flag_vect_cost_model != VECT_COST_MODEL_CHEAP); if (do_versioning) {