aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-20.c
blob: 266ceb000a5b44a05bfed8b45c85387a0c54e5b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-sink1-details" } */

void bar ();
int foo (int *p, int x)
{
  int res = *p;
  if (x)
    {
      bar ();
      res = 1;
    }
  return res;
}

/* { dg-final { scan-tree-dump "Sinking # VUSE" "sink1" } } */