From 10ea26721d314b7dda7677dea57aad1845d5c9dc Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 3 Jul 2017 19:31:02 +0200 Subject: [PATCH] * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up. From-SVN: r249929 --- gcc/ChangeLog | 4 ++++ gcc/tree-vect-loop-manip.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ac14d97866..be3b09418b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-07-03 Jan Hubicka + + * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up. + 2017-07-03 Richard Earnshaw * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary. diff --git a/gcc/tree-vect-loop-manip.c b/gcc/tree-vect-loop-manip.c index 34e4aa246fa..b76b515a788 100644 --- a/gcc/tree-vect-loop-manip.c +++ b/gcc/tree-vect-loop-manip.c @@ -1849,8 +1849,8 @@ vect_do_peeling (loop_vec_info loop_vinfo, tree niters, tree nitersm1, get lost if we scale down to 0. */ int scale_up = REG_BR_PROB_BASE * REG_BR_PROB_BASE / prob_vector.to_reg_br_prob_base (); - basic_block *bbs = get_loop_body (loop); - scale_bbs_frequencies_int (bbs, loop->num_nodes, scale_up, + basic_block *bbs = get_loop_body (epilog); + scale_bbs_frequencies_int (bbs, epilog->num_nodes, scale_up, REG_BR_PROB_BASE); free (bbs); } -- 2.30.2