From 44ead50eb657c17ca9113db3212fde8b25e655a2 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 26 Jun 2019 08:44:58 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 +++++++ gcc/tree-vect-loop.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.30.2