]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-16.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-interchange-16.c
CommitLineData
0a77c07b
RB
1/* PR/101280 */
2/* { dg-do compile } */
3/* { dg-options "-O3 -fdump-tree-linterchange-details" } */
4
5void dummy (double *, double *);
6#define LEN_2D 32
7double aa[LEN_2D][LEN_2D], bb[LEN_2D][LEN_2D];
8double s231(int iterations)
9{
10// loop interchange
11// loop with data dependency
12 for (int nl = 0; nl < 100*(iterations/LEN_2D); nl++) {
13 for (int i = 0; i < LEN_2D; ++i) {
14 for (int j = 1; j < LEN_2D; j++) {
15 aa[j][i] = aa[j - 1][i] + bb[j][i];
16 }
17 }
18 dummy(aa[0],bb[0]);
19 }
20}
21
22/* { dg-final { scan-tree-dump "loops interchanged" "linterchange" } } */