From: Martin Liska Date: Wed, 26 Jun 2019 06:44:58 +0000 (+0200) Subject: Fix one another thinko in tree-vect-loop.c (PR tree-optimization/90973). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44ead50eb657c17ca9113db3212fde8b25e655a2;p=gcc.git Fix one another thinko in tree-vect-loop.c (PR tree-optimization/90973). 2019-06-26 Martin Liska 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbaed7f466a..d06f5569bcd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2019-06-26 Martin Liska + + 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 * bb-reorder.c (connect_better_edge_p): Add missing else diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 489bee65397..b37bf6f427d 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -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