| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -fdump-tree-ldist-details --param max-completely-peel-times=8" } */ |
| 3 |
|
| 4 |
typedef struct S { |
| 5 |
double z[8][25]; |
| 6 |
double x1[8][40]; |
| 7 |
double x2[8][40]; |
| 8 |
double y[8][35]; |
| 9 |
} S; |
| 10 |
|
| 11 |
S * par; |
| 12 |
void foo () |
| 13 |
{ |
| 14 |
int i, j; |
| 15 |
for (i = 0; i<8; i++) |
| 16 |
for (j = 0; j<35; j++) |
| 17 |
{ |
| 18 |
par->x1[i][j] = par->x2[i][j]; |
| 19 |
par->x2[i][j] = 0.0; |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
/* The cost modeling does not consider WAR as beneficial to split. */ |
| 24 |
/* { dg-final { scan-tree-dump "generated memcpy" "ldist" { xfail *-*-* } } } */ |
| 25 |
/* { dg-final { scan-tree-dump "generated memset zero" "ldist" { xfail *-*-* } } } */ |