1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
8 void bar (struct Loc
*);
10 int foo (int i
, int j
, int k
, int b
)
28 /* This should be optimized to i + j + {k, k + 1}. */
29 res
= IND
.x
[0] + IND
.x
[1] + IND
.x
[2];
31 /* This is just to prevent SRA. */
37 /* All three loads should be eliminated. */
38 /* { dg-final { scan-tree-dump "Eliminated: 3" "pre" } } */
39 /* { dg-final { cleanup-tree-dump "pre" } } */