1 /* { dg-do compile { target size32plus } } */
2 /* { dg-options "-O2 -ftree-loop-distribution -ftree-loop-distribute-patterns -fdump-tree-ldist-details" } */
15 foo (struct st
* restrict p
)
17 for (unsigned i
= 0; i
< M
; ++i
)
20 for (unsigned j
= N
; j
> 0; --j
)
22 p
->b
[i
][j
- 1] = p
->a
[i
][j
- 1];
28 /* The cost modeling doesn't consider splitting a WAR re-use profitable. */
29 /* { dg-final { scan-tree-dump-times "Loop nest . distributed: split to 1 loops and 1 library" 1 "ldist" } } */