1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-lim1-details" } */ void bar (int); void foo (int n, int m) { unsigned i; for (i = 0; i < n; ++i) { int x; if (m < 0) x = 1+n; else x = m-n; bar (x); } } /* { dg-final { scan-tree-dump-times "Moving PHI node" 1 "lim1" } } */ /* { dg-final { cleanup-tree-dump "lim1" } } */