blob: c8a434a2bba8a32a38285ef928cd309941330662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* { dg-do compile } */
/* { dg-options "-O -fno-tree-sra -fdump-tree-fre-stats" } */
union loc {
unsigned reg;
signed offset;
};
void __frame_state_for2 (volatile char *state_in)
{
union loc fs;
{
*state_in = fs.reg;
*state_in = fs.offset;
}
}
void __frame_state_for1 (volatile char *state_in)
{
union loc fs;
for (;;)
{
*state_in = fs.offset;
*state_in = fs.reg;
}
}
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 2 "fre" } } */
/* { dg-final { scan-tree-dump-times "Insertions: 1" 2 "fre" } } */
/* { dg-final { cleanup-tree-dump "fre" } } */
|