* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp05.c
blob8c611e91fcdc106774e69cd42c20565c3a9a18d3
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1 -fno-early-inlining" } */
5 inline int ten()
7 return 10;
9 inline int zero()
11 return 0;
14 int
15 foo (int k, int j)
17 if (k >= ten())
19 if (j > k)
21 /* We should fold this to if (1). */
22 if (j > zero())
23 return j;
27 return j+1;
30 /* { dg-final { scan-tree-dump-times "Folding predicate j_.*to 1" 1 "vrp1" } } */