URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-8.c] - Rev 816
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */ struct s { int *n; }; int foo (__SIZE_TYPE__ i, struct s *array) { int *p = array[i].n; if (p) { int *q = array[i].n; if (p != q) return 1; } return 0; } /* We should eliminate two address calculations, one cast, and one load. */ /* { dg-final { scan-tree-dump-times "Eliminated: 4" 1 "fre"} } */ /* { dg-final { cleanup-tree-dump "fre" } } */