1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fdump-tree-vrp1" } */
3 
4 void g (void);
5 void g1 (void);
6 
7 void
f(long a,long b,long c,long d,int x)8 f (long a, long b, long c, long d, int x)
9 {
10   int t;
11   if (x)
12     t = a < b;
13   else if (d == x)
14     t = c < b;
15   else
16     t = d > c;
17 
18   if (t)
19     {
20       g1 ();
21       g ();
22     }
23 }
24 
25 /* { dg-final { scan-tree-dump-times "Removing basic block" 1 "vrp1" } } */
26