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]

Profile upating in simd_clone_adjust


Hi,
this is the last occurence of missing probability update during x86-64
bootstrap&regtesting.  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;
     }
 


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