blob: 8695bcf6a2c4536b67a279fd5e0c13e29af4109b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-fre1-details -fno-tree-sra" } */
struct Bar {
int dom;
};
struct Foo {
struct Bar doms[3];
};
int foo(int i, int j, int k)
{
struct Foo f;
f.doms[0].dom = i;
f.doms[1].dom = j;
f.doms[2].dom = k;
return f.doms[0LL].dom;
}
/* { dg-final { scan-tree-dump "Replaced f.doms\\\[0\\\].dom with i_" "fre1" } } */
|