expect.c (dw2_build_landing_pads): Update profile of the landing pad bb.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 2 Jul 2017 22:16:30 +0000 (00:16 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 2 Jul 2017 22:16:30 +0000 (22:16 +0000)
* expect.c (dw2_build_landing_pads): Update profile of the landing pad
bb.

From-SVN: r249885

gcc/ChangeLog
gcc/except.c

index 953b38413c25186f5314f1eb00e73c4a2dfc3388..120f6bc48a6ac2b587559d86ec4f06d54da53b90 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
+
+       * expect.c (dw2_build_landing_pads): Update profile of the landing pad
+       bb.
+
 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
 
        * tree-complex.c (expand_complex_div_wide): update profile.
index 5709bdbed65449d129b2ac56d0eb61909fc5b2a5..ffa5b75a46561a3a41970d07234d74e54e5d2708 100644 (file)
@@ -990,6 +990,8 @@ dw2_build_landing_pads (void)
       end_sequence ();
 
       bb = emit_to_new_bb_before (seq, label_rtx (lp->post_landing_pad));
+      bb->count = bb->next_bb->count;
+      bb->frequency = bb->next_bb->frequency;
       make_single_succ_edge (bb, bb->next_bb, e_flags);
       if (current_loops)
        {