From d3cbd7deea504d12d9eb4d0dbe8da9a143825079 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 22 Aug 2008 21:11:48 +0000 Subject: re PR tree-optimization/37143 (ICE in VRP with the auto-vectorizer) 2008-08-22 Richard Guenther PR tree-optimization/37143 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build a conversion statement instead of a copy. * g++.dg/vect/pr37143.C: New testcase. From-SVN: r139500 --- gcc/tree-vrp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/tree-vrp.c') diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index a61f292c43f..17fbcdbb770 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -2707,7 +2707,10 @@ extract_range_from_unary_expr (value_range_t *vr, enum tree_code code, max = fold_unary_to_constant (code, type, vr0.max); else if (!needs_overflow_infinity (type)) max = TYPE_MAX_VALUE (type); - else if (supports_overflow_infinity (type)) + else if (supports_overflow_infinity (type) + /* We shouldn't generate [+INF, +INF] as set_value_range + doesn't like this and ICEs. */ + && !is_positive_overflow_infinity (min)) max = positive_overflow_infinity (type); else { -- cgit v1.2.1