aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-parloops.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-parloops.c')
-rw-r--r--gcc/tree-parloops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index a6d8f215..b1ef8355 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -1908,7 +1908,7 @@ parallelize_loops (void)
/* FIXME: Bypass this check as graphite doesn't update the
count and frequency correctly now. */
if (!flag_loop_parallelize_all
- && (expected_loop_iterations (loop) <= n_threads
+ && (estimated_loop_iterations_int (loop, false)<= n_threads * MIN_PER_THREAD
/* Do not bother with loops in cold areas. */
|| optimize_loop_nest_for_size_p (loop)))
continue;