+2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
+ comment.
+ (vect_update_inits_of_drs): Likewise.
+ (vect_create_cond_for_alias_checks): Likewise.
+ * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
+
2016-07-19 Richard Biener <rguenther@suse.de>
PR lto/71907
iterates NITERS times, the new epilog loop iterates
NITERS % VECTORIZATION_FACTOR times.
+ If CHECK_PROFITABILITY is 1 then profitability check is generated
+ using TH as a cost model profitability threshold of iterations for
+ vectorization.
+
The original loop will later be made to iterate
NITERS / VECTORIZATION_FACTOR times (this value is placed into RATIO).
'niters' is set to the misalignment of one of the data references in the
loop, thereby forcing it to refer to an aligned location at the beginning
of the execution of this loop. The data reference for which we are
- peeling is recorded in LOOP_VINFO_UNALIGNED_DR. */
+ peeling is recorded in LOOP_VINFO_UNALIGNED_DR.
+
+ If CHECK_PROFITABILITY is 1 then profitability check is generated
+ using TH as a cost model profitability threshold of iterations for
+ vectorization. */
void
vect_do_peeling_for_alignment (loop_vec_info loop_vinfo, tree ni_name,
The test generated to check which version of loop is executed
is modified to also check for profitability as indicated by the
- cost model initially.
+ cost model threshold TH.
The versioning precondition(s) are placed in *COND_EXPR and
*COND_EXPR_STMT_LIST. */
Return the number of iterations required for the vector version of the
loop to be profitable relative to the cost of the scalar version of the
- loop. */
+ loop.
+
+ *RET_MIN_PROFITABLE_NITERS is a cost model profitability threshold
+ of iterations for vectorization. -1 value means loop vectorization
+ is not profitable. This returned value may be used for dynamic
+ profitability check.
+
+ *RET_MIN_PROFITABLE_ESTIMATE is a profitability threshold to be used
+ for static check against estimated number of iterations. */
static void
vect_estimate_min_profitable_iters (loop_vec_info loop_vinfo,