diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-09-03 13:19:01 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2009-09-03 06:19:01 -0700 |
commit | 8e094aa29dcc9d8058a3717617f3fab2ec833919 (patch) | |
tree | c2c2265280904b35b29e6ef94206a8bcf49ac462 /gcc/tree-parloops.c | |
parent | e20c9328c06295ee94952ee9815c897ccee6ca5c (diff) | |
download | gcc-8e094aa29dcc9d8058a3717617f3fab2ec833919.zip gcc-8e094aa29dcc9d8058a3717617f3fab2ec833919.tar.gz gcc-8e094aa29dcc9d8058a3717617f3fab2ec833919.tar.bz2 |
tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT when comparing against estimated_loop_iterations_int return.
2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
* tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
when comparing against estimated_loop_iterations_int return.
From-SVN: r151378
Diffstat (limited to 'gcc/tree-parloops.c')
-rw-r--r-- | gcc/tree-parloops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index 0053ad2..12b4ac0 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -1908,7 +1908,8 @@ parallelize_loops (void) /* FIXME: Bypass this check as graphite doesn't update the count and frequency correctly now. */ if (!flag_loop_parallelize_all - && (estimated_loop_iterations_int (loop, false)<= n_threads * MIN_PER_THREAD + && ((estimated_loop_iterations_int (loop, false) + <= (HOST_WIDE_INT) n_threads * MIN_PER_THREAD) /* Do not bother with loops in cold areas. */ || optimize_loop_nest_for_size_p (loop))) continue; |