Debian Codegraph @

gcc/testsuite/gcc.dg/autopar/pr47060.c

raw
1 /* PR tree-optimization/47060 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -ffast-math -ftree-parallelize-loops=2 -fno-tree-dce" } */
4
5 struct S
6 {
7 int n;
8 float *a;
9 };
10
11 float
12 foo (struct S *b)
13 {
14 float c, d;
15 int j;
16 for (j = 0; j < b->n; j++)
17 d += b->a[j];
18 for (j = 0; j < b->n; j++)
19 c += b->a[j];
20 return d;
21 }