re PR tree-optimization/92066 (Many vectorization tests FAIL)
authorRichard Biener <rguenther@suse.de>
Fri, 11 Oct 2019 10:45:48 +0000 (10:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 11 Oct 2019 10:45:48 +0000 (10:45 +0000)
2019-10-11  Richard Biener  <rguenther@suse.de>

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

gcc/ChangeLog
gcc/tree-vect-data-refs.c

index cbc0b2fe1d96341fc6cf46bd21469aa089d093c3..e250c9d55d07780474a23453331320ac797b37e8 100644 (file)
@@ -1,3 +1,10 @@
+2019-10-11  Richard Biener  <rguenther@suse.de>
+
+       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  <tobias@codesourcery.com>
 
        * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
index e2baeb024834a16bd2bf713a8ef425956169b31a..9a4c01d286093abb7566a2e24bb694c06d195f2d 100644 (file)
@@ -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)
     {