/* { dg-do compile } */ /* { dg-options "-O2 -ftree-parallelize-loops=2 -fdump-tree-parloops2-details" } */ #include #include #include unsigned int f (unsigned int n, unsigned int sum) { unsigned int i; i = UINT_MAX; do { sum += i % 13; i++; } while (i < n - 1); return sum; } /* { dg-final { scan-tree-dump-times "parallelizing inner loop" 1 "parloops2" } } */ /* { dg-final { scan-tree-dump-times "alternative exit-first loop transform succeeded" 0 "parloops2" } } */