1 ! { dg-options "-O3 -fdump-tree-lversion-details -fno-frontend-loop-interchange" }
3 ! We could version the loop for when the first dimension has a stride
4 ! of 1, but at present there's no real benefit. The gimple loop
5 ! interchange pass couldn't handle the versioned loop, and interchange
6 ! is instead done by the frontend (but disabled by the options above).
10 do i = lbound(x, 1), ubound(x, 1)
11 do j = lbound(x, 2), ubound(x, 2)
17 subroutine f2(x, n, step)
27 subroutine f3(x, n, step)
29 real :: x(n * step, n)
37 ! { dg-final { scan-tree-dump-times {likely to be the innermost dimension} 1 "lversion" } }
38 ! { dg-final { scan-tree-dump-not {want to version} "lversion" } }
39 ! { dg-final { scan-tree-dump-not {versioned} "lversion" } }