diff mbox

Fix PR53098

Message ID Pine.LNX.4.64.1204241005170.23071@jbgna.fhfr.qr
State New
Headers show

Commit Message

Richard Biener April 24, 2012, 8:05 a.m. UTC
This fixes PR53098.

Committed as obvious.

Richard.

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

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

Patch

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.");