1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile" } */
12 /* Only one loop should be found here. */
31 /* Two loops should be found, in this case. */
76 /* Two loops with a nested subloop. */
82 for (k
= 0; k
< 100; k
++)
100 /* Both subloop and non-subloop back edges. */
121 /* { dg-final { scan-tree-dump-times "Disambiguating loop" 5 "profile" } } */
122 /* { dg-final { scan-tree-dump-times "Found latch edge" 5 "profile" } } */
123 /* { dg-final { scan-tree-dump-times "Merged latch edges" 2 "profile" } } */
124 /* { dg-final { scan-tree-dump-times "4 loops found" 2 "profile" } } */
125 /* { dg-final { scan-tree-dump-times "3 loops found" 2 "profile" } } */
126 /* { dg-final { scan-tree-dump-times "2 loops found" 1 "profile" } } */
128 /* { dg-final { cleanup-tree-dump "profile" } } */