* trans-mem.c (split_bb_make_tm_edge): Update profile.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 1 Jul 2017 14:56:21 +0000 (16:56 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 1 Jul 2017 14:56:21 +0000 (14:56 +0000)
From-SVN: r249871

gcc/ChangeLog
gcc/trans-mem.c

index b4e5948b8f47620b29a3dc1f7a2bd2ab3a8b2e2e..a333d06bda06dae53d39a1a9f051de7e9e6137e5 100644 (file)
@@ -1,3 +1,7 @@
+2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
+
+       * trans-mem.c (split_bb_make_tm_edge): Update profile.
+
 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
 
        * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
index f747e05bd10381a0b8e86199e5474f7af503603a..eb03560be260d696f401a162c6f38cdd6a9b2051 100644 (file)
@@ -3211,7 +3211,12 @@ split_bb_make_tm_edge (gimple *stmt, basic_block dest_bb,
       edge e = split_block (bb, stmt);
       *pnext = gsi_start_bb (e->dest);
     }
-  make_edge (bb, dest_bb, EDGE_ABNORMAL);
+  edge e = make_edge (bb, dest_bb, EDGE_ABNORMAL);
+  if (e)
+    {
+      e->probability = profile_probability::guessed_never ();
+      e->count = profile_count::guessed_zero ();
+    }
 
   // Record the need for the edge for the benefit of the rtl passes.
   if (cfun->gimple_df->tm_restart == NULL)