re PR tree-optimization/31383 (ICE with -O2 -ftree-vectorize (regression))

PR tree-optimization/31383
	* tree-data-ref.c (affine_function_equal_p): Do not require the vectors
	to have the same length.

From-SVN: r123359
This commit is contained in:
Zdenek Dvorak 2007-03-30 11:36:19 +02:00 committed by Zdenek Dvorak
parent 4f40bddfb0
commit f86289d5e5
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/31383
* tree-data-ref.c (affine_function_equal_p): Do not require the vectors
to have the same length.
2007-03-30 Jan Hubicka <jh@suse.cz>
PR middle-end/PR30700

View File

@ -2069,7 +2069,8 @@ affine_function_equal_p (affine_fn fna, affine_fn fnb)
{
unsigned i, n = VEC_length (tree, fna);
gcc_assert (n == VEC_length (tree, fnb));
if (n != VEC_length (tree, fnb))
return false;
for (i = 0; i < n; i++)
if (!operand_equal_p (VEC_index (tree, fna, i),