This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] RFC - tree vectorizer
On Wed, Dec 31, 2003 at 03:28:50PM +0200, Dorit Naishlos wrote:
> For now what I'm doing is continuing to use the type casting scheme, and
> forcing the alias set of the vector reference to be the same as the alias
> set of the scalar reference using:
> TYPE_ALIAS_SET (TREE_TYPE (vec_var)) = TYPE_ALIAS_SET (TREE_TYPE
> (scalar_var));
Functionally, this is better than using a union, which would force
the alias set to zero.
This is perfectly fine, assuming you're creating your own vector
type, and not clobbering the alias set of the user-visible vector
types accessible with __attribute__((vector_size)).
r~