PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-pre-11.c
blob26c47b1830ba52aaf7363a9c9521f939c16266a5
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
3 double cos (double);
4 double f(double a)
6 double b;
7 double c,d;
8 if (a < 2.0)
10 c = cos (a);
12 else
14 c = 1.0;
16 d = cos (a);
17 return d + c;
20 /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre"} } */
21 /* { dg-final { cleanup-tree-dump "pre" } } */