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 Biener <rguenth@gcc.gnu.org>2012-04-24 08:06:20 +0000
commite1b435ad06fe3575a7318acb229f30076a19c910 (patch)
tree06e2f86d4e785b64eb6fbc74a2c7f4dfc2310edb /gcc/tree-vect-loop.c
parent86c8bb32353a94e4ade394cb285d1f7e3d366261 (diff)
downloadgcc-e1b435ad06fe3575a7318acb229f30076a19c910.zip
gcc-e1b435ad06fe3575a7318acb229f30076a19c910.tar.gz
gcc-e1b435ad06fe3575a7318acb229f30076a19c910.tar.bz2
re PR tree-optimization/53098 (tree-vect-loop.c:1414:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare])
2012-04-24 Richard Guenther <rguenther@suse.de> PR tree-optimization/53098 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup comparison sign. From-SVN: r186754
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 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.");