tree-vect-transform.c (vectorizable_store): Use the rhs vector type for alias check.

* tree-vect-transform.c (vectorizable_store): Use the rhs vector type
	for alias check.

From-SVN: r140257
This commit is contained in:
Ira Rosen 2008-09-11 06:00:03 +00:00 committed by Ira Rosen
parent 2c542cbd1d
commit 5993860d25
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-09-11 Ira Rosen <irar@il.ibm.com>
* tree-vect-transform.c (vectorizable_store): Use the rhs vector type
for alias check.
2008-09-10 Jakub Jelinek <jakub@redhat.com>
PR middle-end/37338

View File

@ -5180,6 +5180,9 @@ vectorizable_store (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt,
return false;
}
/* The type of the vector store is determined by the rhs. */
vectype = get_vectype_for_scalar_type (TREE_TYPE (op));
/* If accesses through a pointer to vectype do not alias the original
memory reference we have a problem. */
if (get_alias_set (vectype) != get_alias_set (TREE_TYPE (scalar_dest))