This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Update profile in split_bb_make_tm_edge
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org, rth at redhat dot com, aldyh at redhat dot com
- Date: Sat, 1 Jul 2017 14:48:53 +0200
- Subject: Update profile in split_bb_make_tm_edge
- Authentication-results: sourceware.org; auth=none
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)