Fix one another thinko in tree-vect-loop.c (PR tree-optimization/90973).

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
This commit is contained in:
Martin Liska 2019-06-26 08:44:58 +02:00 committed by Martin Liska
parent 02e18a0e8a
commit 44ead50eb6
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
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

View file

@ -3405,7 +3405,7 @@ vect_get_known_peeling_cost (loop_vec_info loop_vinfo, int peel_iters_prologue,
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