Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / tree-ssa / pr20913.c
blobfb5461a26092ff493c7dd32e2c547327a398c46f
1 /* PR tree-optimization/20913
2 COPY-PROP did not fold COND_EXPR, blocking some copy propagation
3 opportunities. */
5 /* { dg-do link } */
6 /* { dg-options "-O2 -fno-tree-dominator-opts" } */
8 int
9 foo (int a, int b, int c, int d)
11 int x, y;
13 b = a;
14 if (a == b)
15 x = c;
16 else
18 link_error ();
19 x = d;
22 if (x == c)
23 return a;
24 else
26 link_error ();
27 return b;
31 main()
33 foo (1, 2, 3, 4);