From d872853dce396c9848142145507043040be14c5c Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 3 Jul 2017 00:18:21 +0200 Subject: [PATCH] * bb-reorder.c (fix_up_crossing_landing_pad): Update profile. From-SVN: r249886 --- gcc/ChangeLog | 4 ++++ gcc/bb-reorder.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 120f6bc48a6..7e0cf647244 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-07-02 Jan Hubicka + + * bb-reorder.c (fix_up_crossing_landing_pad): Update profile. + 2017-07-02 Jan Hubicka * expect.c (dw2_build_landing_pads): Update profile of the landing pad diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index f8ef913c539..ebd8b481a92 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -1446,6 +1446,8 @@ fix_up_crossing_landing_pad (eh_landing_pad old_lp, basic_block old_bb) last_bb = EXIT_BLOCK_PTR_FOR_FN (cfun)->prev_bb; new_bb = create_basic_block (new_label, jump, last_bb); new_bb->aux = last_bb->aux; + new_bb->frequency = post_bb->frequency; + new_bb->count = post_bb->count; last_bb->aux = new_bb; emit_barrier_after_bb (new_bb); -- 2.30.2