re PR tree-optimization/21817 (ICE in for_each_index, at tree-ssa-loop-im.c:200)

PR tree-optimization/21817
	* tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.

From-SVN: r100410
This commit is contained in:
Zdenek Dvorak 2005-06-01 01:07:25 +02:00 committed by Zdenek Dvorak
parent ec22e73ba8
commit 60407f7a65
4 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-05-31 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/21817
* tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
2005-05-31 Pat Haugen <pthaugen@us.ibm.com>
* loop.c (loop_invariant_p, valid_initial_value_p): Revert last

View file

@ -1,3 +1,8 @@
2005-05-31 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/21817
* gcc.dg/torture/pr21817-1.c: New.
2005-05-31 Nathan Sidwell <nathan@codesourcery.com>
PR c++/21165

View file

@ -0,0 +1,12 @@
/* { dg-do compile } */
typedef float v4sf __attribute__((vector_size(16)));
v4sf value;
void foo(void)
{
unsigned int band;
for(band=0; band < 2; band++)
{
value += (v4sf){1e9f,1e9f,1e9f,1e9f};
}
}

View file

@ -201,6 +201,7 @@ for_each_index (tree *addr_p, bool (*cbck) (tree, tree *, void *), void *data)
case PARM_DECL:
case STRING_CST:
case RESULT_DECL:
case VECTOR_CST:
return true;
default: