Debian Codegraph @

gcc/testsuite/gcc.dg/auto-init-sra-2.c

raw
1 /* Verify that SRA total scalarization will not be confused by padding
2 and also not confused by auto initialization. */
3 /* { dg-do compile } */
4 /* { dg-options "-O1 --param sra-max-scalarization-size-Ospeed=16 -fdump-tree-release_ssa -ftrivial-auto-var-init=pattern" } */
5
6 struct S
7 {
8 int i;
9 unsigned short f1;
10 char f2;
11 unsigned short f3, f4;
12 };
13
14
15 int foo (struct S *p)
16 {
17 struct S l;
18
19 l = *p;
20 l.i++;
21 *p = l;
22 }
23
24 /* { dg-final { scan-tree-dump-times "l;" 0 "release_ssa" } } */