No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-ssa / ssa-pre-8.c
bloba6535fb4013e2cbebba9a5f13ac9702884fc1d90
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
3 struct s {
4 int *n;
5 };
7 int
8 foo (__SIZE_TYPE__ i, struct s *array)
10 int *p = array[i].n;
11 if (p)
13 int *q = array[i].n;
14 if (p != q)
15 return 1;
17 return 0;
19 /* We should eliminate two address calculations, one cast, and one load. */
20 /* { dg-final { scan-tree-dump-times "Eliminated: 4" 1 "fre"} } */
21 /* { dg-final { cleanup-tree-dump "fre" } } */