gcc/testsuite/gcc.dg/tree-ssa/ldist-28.c
raw| 1 | /* { dg-do compile { target size32plus } } */ |
| 2 | /* { dg-options "-O2 -ftree-loop-distribution -ftree-loop-distribute-patterns -fdump-tree-ldist-details" } */ |
| 3 | |
| 4 | #define M (256) |
| 5 | #define N (1024) |
| 6 | int arr[M][N]; |
| 7 | |
| 8 | void |
| 9 | foo (void) |
| 10 | { |
| 11 | for (unsigned i = 0; i < M; ++i) |
| 12 | for (unsigned j = 0; j < N; ++j) |
| 13 | arr[i][j] = 0; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-tree-dump "Loop nest . distributed: split to 0 loops and 1 library" "ldist" } } */ |