Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-83.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1-details" } */
3
4 struct X
5 {
6 int a : 1;
7 int b : 1;
8 } x;
9
10 void foo (int v)
11 {
12 x.a = 1;
13 x.b = v;
14 x.a = 1;
15 x.b = v;
16 }
17
18 struct Y
19 {
20 _Bool a;
21 _Bool b;
22 } y;
23
24 void bar (int v)
25 {
26 y.a = 1;
27 y.b = v;
28 y.a = 1;
29 y.b = v;
30 }
31
32 /* { dg-final { scan-tree-dump-times "Deleted redundant store" 4 "fre1" } } */