This fixes PR53098.

Committed as obvious.

Richard.

2012-04-24  Richard Guenther  <rguent...@suse.de>

        PR tree-optimization/53098
        * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
        comparison sign.

Index: gcc/tree-vect-loop.c
===================================================================
--- gcc/tree-vect-loop.c        (revision 186751)
+++ gcc/tree-vect-loop.c        (working copy)
@@ -1411,7 +1411,7 @@ vect_analyze_loop_operations (loop_vec_i
   if ((LOOP_VINFO_NITERS_KNOWN_P (loop_vinfo)
        && (LOOP_VINFO_INT_NITERS (loop_vinfo) < vectorization_factor))
       || ((max_niter = max_stmt_executions_int (loop)) != -1
-         && max_niter < vectorization_factor))
+         && (unsigned HOST_WIDE_INT) max_niter < vectorization_factor))
     {
       if (vect_print_dump_info (REPORT_UNVECTORIZED_LOCATIONS))
         fprintf (vect_dump, "not vectorized: iteration count too small.");

Reply via email to