Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-26.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-lim2-details" } */
3
4 void foo (int n, int m, int *a, int *p, int * __restrict q)
5 {
6 for (int i = 0; i < n; ++i)
7 {
8 int j = 0;
9 do
10 {
11 q[j] = *a * p[i];
12 }
13 while (++j < m);
14 }
15 }
16
17 /* Verify we can hoist *a two levels. */
18 /* { dg-final { scan-tree-dump-times "out of loop 1" 1 "lim2" } } */