This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Profile upating in simd_clone_adjust
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: jakub at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 4 Jul 2017 15:46:26 +0200
- Subject: Profile upating in simd_clone_adjust
- Authentication-results: sourceware.org; auth=none
Hi,
this is the last occurence of missing probability update during x86-64
bootstrap®testing. I am not sure what is really going on here,
is haing probability as almost never executed OK?
Honza
Index: omp-simd-clone.c
===================================================================
--- omp-simd-clone.c (revision 249928)
+++ omp-simd-clone.c (working copy)
@@ -1240,7 +1240,9 @@ simd_clone_adjust (struct cgraph_node *n
g = gimple_build_cond (EQ_EXPR, mask, build_zero_cst (TREE_TYPE (mask)),
NULL, NULL);
gsi_insert_after (&gsi, g, GSI_CONTINUE_LINKING);
- make_edge (loop->header, incr_bb, EDGE_TRUE_VALUE);
+ edge e = make_edge (loop->header, incr_bb, EDGE_TRUE_VALUE);
+ /* FIXME: What is real porbability here? */
+ e->probability = profile_probability::guessed_never ();
FALLTHRU_EDGE (loop->header)->flags = EDGE_FALSE_VALUE;
}