blob: fab1e599b81191f55bd5f0db86760f4c4761cc6d [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-ccp -fdump-tree-fre1-stats" } */
int foo()
{
int i = 0;
do
{
i++;
}
while (i != 1);
return i;
}
/* { dg-final { scan-tree-dump "RPO iteration over 3 blocks visited 3 blocks" "fre1" } } */
/* { dg-final { scan-tree-dump "return 1;" "fre1" } } */