aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-vect-loop.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3e639c2..e6a4de7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-04-24 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/53098
+ * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
+ comparison sign.
+
2012-04-24 Andrew Pinski <apinski@cavium.com>
PR tree-opt/33512
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 0c6ed39..264eda2 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -1411,7 +1411,7 @@ vect_analyze_loop_operations (loop_vec_info loop_vinfo, bool slp)
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.");