This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR 19893 & array_ref bug
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gdr at integrable-solutions dot net, mark at codesourcery dot com,joseph at codesourcery dot com
- Cc: Joe dot Buck at synopsys dot COM, gcc at gcc dot gnu dot org
- Date: Wed, 16 Mar 2005 13:58:29 -0800 (PST)
- Subject: Re: PR 19893 & array_ref bug
> From: Gabriel Dos Reis <gdr@integrable-solutions.net>
> |
> | Make them array arguments, instead of pointer arguments. I'm not sure
> | if GCC is smart enough to still vectorize them in that case, but
> | that's the right way to express it. An aligned array-of-floats decays
> | to an aligned pointer-to-float, i.e., the pointer is known to be
> | aligned, but the object pointed to is just a float not an aligned
> | float.
>
> Agreed.
>
> -- Gaby
But as Joseph pointed out we don't implement attributes on array
arguments so I get a warning when I try to use the __restrict__
attribute on the array arguments. Without the __restrict__ attribute I
am sure we would not do any vectorization and then what is the point of
the test?
Steve Ellcey
sje@cup.hp.com