gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-10.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-sink-details -fno-tree-vectorize -fno-tree-pre" } */ |
| 3 | |
| 4 | int x[1024], y[1024], z[1024], w[1024]; |
| 5 | void foo (void) |
| 6 | { |
| 7 | int i; |
| 8 | for (i = 1; i < 1024; ++i) |
| 9 | { |
| 10 | int a = x[i]; |
| 11 | int b = y[i]; |
| 12 | int c = x[i-1]; |
| 13 | int d = y[i-1]; |
| 14 | if (w[i]) |
| 15 | z[i] = (a + b) + (c + d); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | /* { dg-final { scan-tree-dump-times "Sinking # VUSE" 4 "sink1" } } */ |