gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-91.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -fdump-tree-fre4" } */ |
| 3 | |
| 4 | extern void foo(void); |
| 5 | |
| 6 | static int a[2], b, *c[2]; |
| 7 | |
| 8 | int main() { |
| 9 | for (b = 0; b < 2; b++) |
| 10 | c[b] = &a[1]; |
| 11 | if (!c[0]) |
| 12 | foo(); |
| 13 | return 0; |
| 14 | } |
| 15 | |
| 16 | /* Even when vectorizing we should eliminate the call to foo. */ |
| 17 | /* { dg-final { scan-tree-dump-not "foo" "fre4" } } */ |