view gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-67.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* { 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" } } */