diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-03 13:19:01 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-03 13:19:01 +0000 |
commit | 88ee9bf1aea38fe5824cfab799f0da9ebd633c02 (patch) | |
tree | c2c2265280904b35b29e6ef94206a8bcf49ac462 /gcc/tree-parloops.c | |
parent | 913310dbfa4832c597da6ce9693c38ef295f2c8b (diff) | |
download | gcc-88ee9bf1aea38fe5824cfab799f0da9ebd633c02.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151378 138bc75d-0d04-0410-961f-82ee72b054a4
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 0053ad28c96..12b4ac0171a 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; |