annotate gcc/testsuite/gcc.dg/tree-ssa/ldist-36.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1 /* { dg-do compile { target size32plus } } */
111
kono
parents:
diff changeset
2 /* { dg-options "-O2 -ftree-loop-distribution -ftree-loop-distribute-patterns -fdump-tree-ldist-details" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 #define M (256)
kono
parents:
diff changeset
5 #define N (512)
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 struct st
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 int a[M][N];
kono
parents:
diff changeset
10 int c[M];
kono
parents:
diff changeset
11 int b[M][N];
kono
parents:
diff changeset
12 };
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 void
kono
parents:
diff changeset
15 foo (struct st * restrict p)
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 for (unsigned i = 0; i < M; ++i)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 p->c[i] = 0;
kono
parents:
diff changeset
20 for (unsigned j = N; j > 0; --j)
kono
parents:
diff changeset
21 {
kono
parents:
diff changeset
22 p->b[i][j - 1] = p->a[i][j - 1];
kono
parents:
diff changeset
23 p->a[i][j - 1] = 0;
kono
parents:
diff changeset
24 }
kono
parents:
diff changeset
25 }
kono
parents:
diff changeset
26 }
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 /* { dg-final { scan-tree-dump-times "Loop nest . distributed: split to 0 loops and 3 library" 1 "ldist" } } */