]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT when comparing against...
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 3 Sep 2009 13:19:01 +0000 (13:19 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 3 Sep 2009 13:19:01 +0000 (06:19 -0700)
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

gcc/ChangeLog
gcc/tree-parloops.c

index dcb11dc260b1ebcf2821964b79e3bb3e014c2135..39323e5ed5189464836e3279938ea6f8e4213bd5 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2009-09-03  Richard Guenther  <rguenther@suse.de>
 
        * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
index 0053ad28c96a00cab6587353c3d988e8cfa02be9..12b4ac0171a90eb3b784e1414ab6eb08e9b6dd1e 100644 (file)
@@ -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;