Commit 5993860d by Ira Rosen Committed by Ira Rosen

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
parent 2c542cbd
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
......
......@@ -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))
......
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