Commit d3cbd7de by Richard Guenther Committed by Richard Biener

re PR tree-optimization/37143 (ICE in VRP with the auto-vectorizer)

2008-08-22  Richard Guenther  <rguenther@suse.de>

	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
parent fee3292b
2008-08-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/37143
* tree-vect-transform.c (vect_create_cond_for_align_checks): Build
a conversion statement instead of a copy.
2008-08-22 Uros Bizjak <ubizjak@gmail.com>
PR target/37184
......
2008-08-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/37143
* g++.dg/vect/pr37143.C: New testcase.
2008-08-22 Daniel Kraft <d@domob.eu>
PR fortran/30239
......
/* { dg-do compile } */
void
f(int NumberOfSideSets, int *ssNumDFperSide, float *ssDF)
{
int i;
float *newssDF = __null;
int *newssNumDF = new int [NumberOfSideSets];
int ndf, nextDF, numNewDF = 0;
int ii=0;
for (i=0; i<NumberOfSideSets; i++)
numNewDF += newssNumDF[i];
if (numNewDF > 0)
newssDF = new float [numNewDF];
nextDF = 0;
ndf = ssNumDFperSide[ii];
for (i=0; i<ndf; i++)
newssDF[nextDF++] = ssDF[i];
}
/* { dg-final { cleanup-tree-dump "vect" } } */
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment