OSDN Git Service

2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Sep 2009 13:19:01 +0000 (13:19 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Sep 2009 13:19:01 +0000 (13:19 +0000)
* 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

gcc/ChangeLog
gcc/tree-parloops.c

index dcb11dc..39323e5 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 0053ad2..12b4ac0 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;