This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Update profile in split_bb_make_tm_edge


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]