1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1 -fdump-tree-mergephi2" } */
6 int foo1 (int x
, int y
)
8 if (y
< 10) return bar ();
9 if (x
> 9) return bar ();
14 int foo2 (int x
, int y
)
16 if (y
< 10) return bar ();
17 if (x
> 9) return bar ();
22 /* We expect to optimiz min/max in VRP*/
24 /* { dg-final { scan-tree-dump-times "MIN_EXPR" 1 "mergephi2" } } */
25 /* { dg-final { scan-tree-dump-times "MAX_EXPR" 1 "mergephi2" } } */
26 /* { dg-final { scan-tree-dump-not "MIN_EXPR" "vrp1" } } */
27 /* { dg-final { scan-tree-dump-not "MAX_EXPR" "vrp1" } } */