2019-06-26 Martin Liska <mliska@suse.cz>
PR tree-optimization/90973
* tree-vect-loop.c (vect_get_known_peeling_cost): Use
epilogue_cost_vec instead of prologue_cost_vec for
a epilogue cost.
From-SVN: r272671
+2019-06-26 Martin Liska <mliska@suse.cz>
+
+ PR tree-optimization/90973
+ * tree-vect-loop.c (vect_get_known_peeling_cost): Use
+ epilogue_cost_vec instead of prologue_cost_vec for
+ a epilogue cost.
+
2019-06-26 Martin Liska <mliska@suse.cz>
* bb-reorder.c (connect_better_edge_p): Add missing else
iterations are unknown, count a taken branch per peeled loop. */
retval = record_stmt_cost (prologue_cost_vec, 1, cond_branch_taken,
NULL, 0, vect_prologue);
- retval += record_stmt_cost (prologue_cost_vec, 1, cond_branch_taken,
+ retval += record_stmt_cost (epilogue_cost_vec, 1, cond_branch_taken,
NULL, 0, vect_epilogue);
}
else