]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/phi-opt-28.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / phi-opt-28.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
3
4 _Bool f1(_Bool a, _Bool b)
5 {
6 if (a)
7 return 1;
8 return b;
9 }
10
11
12 /* There should be no if statements and be fold into just return a & b. */
13 /* { dg-final { scan-tree-dump-not "if" "optimized" } } */
14 /* { dg-final { scan-tree-dump-times " \\\| " 1 "optimized" } } */