summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-7.c
blob: f87476a3a9f323cc12c81f802dda0b803720fd2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */ 
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
int
foo (int *array)
{
    if (array[1] != 0)
          return array[1];
      return 0;
}
/* We should eliminate one load.  */
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */
/* { dg-final { cleanup-tree-dump "fre" } } */