aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/phi_on_compare-2.c
blob: b1865701ad8e2b48e7c60da7785362f902eb10c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */
/* { dg-options "-Ofast -fdump-tree-dom2" } */

void g (void);
void g1 (void);

void
f (long a, long b, long c, long d, int x)
{
  _Bool t;
  if (x)
    t = c < d;
  else
    t = a < b;

  if (t)
    {
      g1 ();
      g ();
    }
}

/* { dg-final { scan-tree-dump-times "Removing basic block" 1 "dom2" } } */