2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-39.c
blob2ced372acc9a9e31e6f83229d2d2b12c612496cf
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1" } */
4 int foo (int i)
6 int k = i + 1;
7 int j = i + 1;
8 if (k != j)
9 k = k + 1;
10 if (k != j)
11 k = k + 1;
12 k = k - i;
13 return k;
16 /* We should be able to value-number the final assignment to k to 1. */
18 /* { dg-final { scan-tree-dump "return 1;" "fre1" } } */