From: Jan Hubicka Date: Sun, 2 Jul 2017 22:18:21 +0000 (+0200) Subject: * bb-reorder.c (fix_up_crossing_landing_pad): Update profile. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d872853dce396c9848142145507043040be14c5c;p=gcc.git * bb-reorder.c (fix_up_crossing_landing_pad): Update profile. From-SVN: r249886 --- 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);