]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/phi_on_compare-2.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / phi_on_compare-2.c
CommitLineData
1d53751d 1/* { dg-do compile } */
4b3a325f 2/* { dg-options "-Ofast -fdump-tree-dom2" } */
1d53751d
JG
3
4void g (void);
5void g1 (void);
6
7void
8f (long a, long b, long c, long d, int x)
9{
10 _Bool t;
11 if (x)
12 t = c < d;
13 else
14 t = a < b;
15
16 if (t)
17 {
18 g1 ();
19 g ();
20 }
21}
22
4b3a325f 23/* { dg-final { scan-tree-dump-times "Removing basic block" 1 "dom2" } } */