This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR53098
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 24 Apr 2012 10:05:45 +0200 (CEST)
- Subject: [PATCH] Fix PR53098
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.
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.");