diff mbox

Update profile in split_bb_make_tm_edge

Message ID 20170701124853.GB20086@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka July 1, 2017, 12:48 p.m. UTC
Hi,
this patch updates profile in trans-mem.c.  I know little about trans-mem but I
think it is safe to assume that the abnormal edge almost never executes as it
is cancellation of the TM profile. 

Bootstrapped/regtested x86_64-linux, will commit it soon.

Honza

	* trans-mem.c (split_bb_make_tm_edge): Update profile.
diff mbox

Patch

Index: trans-mem.c
===================================================================
--- trans-mem.c	(revision 249869)
+++ trans-mem.c	(working copy)
@@ -3211,7 +3211,9 @@  split_bb_make_tm_edge (gimple *stmt, bas
       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);
+  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)