aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-04-24 08:06:20 +0000
committerRichard Guenther <rguenther@suse.de>2012-04-24 08:06:20 +0000
commit2a4397c6886b64cb32f8f6a31600021cd0ec71fb (patch)
tree06e2f86d4e785b64eb6fbc74a2c7f4dfc2310edb /gcc/tree-vect-loop.c
parent26c1a9a27b936f9bfb195b5e871e87028911c35c (diff)
2012-04-24 Richard Guenther <rguenther@suse.de>
PR tree-optimization/53098 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup comparison sign. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@186754 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r--gcc/tree-vect-loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 0c6ed39c123..264eda20593 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.");