VR-VALUES [PR28794]: optimize compare assignments also
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp-compare-1.c
blob9889cf347064400feaf615966a08705247f8c437
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-evrp-details" } */
3 /* PR tree-optimization/28794 */
5 void g(int);
6 void f1(int x)
8 if (x < 0) return;
9 g(x>0);
12 /* `x > 0` should be optimized to just `x != 0` */
13 /* { dg-final { scan-tree-dump-times "Simplified relational" 1 "evrp" } } */