The following adds a comment how it's awkward to add the scalar loop
stmt cost vectors with scaled count to the vector loop cost vector
to estimate peeling costs.
* tree-vect-loop.cc (vect_estimate_min_profitable_iters):
Add comment about costing of prologue/epilogue.
epilogue_need_br_taken_cost = true;
}
+ /* The way we cummulate peeling costs into the vector prologue/epilogue
+ cost is a bit awkward given we cannot reuse scalar_costs which is
+ already computed and also because it cannot take into account any
+ epilogue vectorization we'll carry out in the end. */
+
stmt_info_for_cost *si;
int j;
/* Add costs associated with peel_iters_prologue. */