public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Update profile in split_bb_make_tm_edge
@ 2017-07-01 12:48 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2017-07-01 12:48 UTC (permalink / raw)
  To: gcc-patches, rth, aldyh

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.
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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-01 12:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-01 12:48 Update profile in split_bb_make_tm_edge Jan Hubicka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).