summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/omp-expand.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ea3b2e327bd..c06ef3f3633 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-06 Tom de Vries <tom@codesourcery.com>
+
+ * omp-expand.c (expand_oacc_for): Add missing edge probability for chunk
+ loop.
+
2017-08-04 Yury Gribov <tetra2005@gmail.com>
PR tree-optimization/57371
diff --git a/gcc/omp-expand.c b/gcc/omp-expand.c
index 970e04f71f8..5772bd9e4a3 100644
--- a/gcc/omp-expand.c
+++ b/gcc/omp-expand.c
@@ -5718,7 +5718,9 @@ expand_oacc_for (struct omp_region *region, struct omp_for_data *fd)
/* Fixup edges from bottom_bb. */
split->flags ^= EDGE_FALLTHRU | EDGE_FALSE_VALUE;
- make_edge (bottom_bb, head_bb, EDGE_TRUE_VALUE);
+ split->probability = profile_probability::unlikely ().guessed ();
+ edge latch_edge = make_edge (bottom_bb, head_bb, EDGE_TRUE_VALUE);
+ latch_edge->probability = profile_probability::likely ().guessed ();
}
}