gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-63.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -fdump-tree-fre1-stats" } */ |
| 3 | |
| 4 | int foo(char *x) |
| 5 | { |
| 6 | __builtin_memset (&x[1], 'c', 42); |
| 7 | return x[0] + x[1] + x[42] + x[43]; |
| 8 | } |
| 9 | |
| 10 | /* We should eliminate x[1] and x[42] and their conversions to int. */ |
| 11 | /* { dg-final { scan-tree-dump "Eliminated: 4" "fre1" } } */ |