2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-sink-1.c
blobc3326d27e25d4bb73b6394afbfba61118a143307
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-sink-stats" } */
3 int
4 foo (int a, int b, int c)
6 int x = a * b;
7 return c ? x : a;
9 /* We should sink the x = a * b calculation into the branch that returns x. */
10 /* { dg-final { scan-tree-dump-times "Sunk statements: 1" 1 "sink" } } */
11 /* { dg-final { cleanup-tree-dump "sink" } } */