]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/tree-vectorizer.h
common.opt: Introduced a new option -fsimd-cost-model.
[gcc.git] / gcc / tree-vectorizer.h
index 39d7d41c65e0f713b99f08731a81d1ab9d772b74..4427d6a7b335049441ca889e19149a022f29d5b0 100644 (file)
@@ -915,9 +915,12 @@ known_alignment_for_access_p (struct data_reference *data_ref_info)
 
 /* Return true if the vect cost model is unlimited.  */
 static inline bool
-unlimited_cost_model ()
+unlimited_cost_model (loop_p loop)
 {
-  return flag_vect_cost_model == VECT_COST_MODEL_UNLIMITED;
+  if (loop != NULL && loop->force_vect
+      && flag_simd_cost_model != VECT_COST_MODEL_DEFAULT)
+    return flag_simd_cost_model == VECT_COST_MODEL_UNLIMITED;
+  return (flag_vect_cost_model == VECT_COST_MODEL_UNLIMITED);
 }
 
 /* Source location */
This page took 0.031188 seconds and 5 git commands to generate.