libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-97.c
blob2f09c8baeb8c41c7e7256008aa47a3a488a7ac17
1 /* { dg-do compile } */
2 /* ethread threading does not yet catch this but it might at some point. */
3 /* { dg-options "-O -fdump-tree-fre1-details -fno-thread-jumps" } */
5 int foo (int b, int x)
7 int i, j;
8 if (b)
9 i = x;
10 if (b)
11 j = x;
12 return j == i;
15 /* Even with different undefs we should CSE a PHI node with the
16 same controlling condition. */
18 /* { dg-final { scan-tree-dump "Replaced redundant PHI node" "fre1" } } */
19 /* { dg-final { scan-tree-dump "return 1;" "fre1" } } */