Reduction Pattern ( Vectorization or Parallelization)
Richard Biener
richard.guenther@gmail.com
Thu Jul 16 18:45:00 GMT 2015
On July 16, 2015 8:03:03 PM GMT+02:00, Toon Moene <toon@moene.org> wrote:
>On 07/16/2015 12:53 PM, Richard Biener wrote:
>
>> On Sun, Jul 5, 2015 at 1:57 PM, Ajit Kumar Agarwal
>
>>> For the following code
>>> For(j = 0; j <= N;j++)
>>> {
>>> y = d[j];
>>> For( I = 0 ; I <8 ; i++)
>>> X(a[i]) = X(a[i]) + c[i] * y;
>>> }
>>>
>>> Fig(1).
>
>> I think the issue here is dependences of X(A[i]) as A[i] might be the
>same
>> for different i.
>
>In Fortran this is not allowed on the left-hand side of an assignment.
Only if x(a(I)) = ... Is an array expression, right? C doesn't have those.
Richard.
>Does C have any restrictions here ?
More information about the Gcc
mailing list