The folding checked by vrp102.c is already computed by ranger during
evrp. Scan the evrp dump instead of vrp1 so the test observes the
property where it is established and does not require the diamond to
survive until vrp1.
gcc/testsuite/ChangeLog:
* gcc.dg/tree-ssa/vrp102.c: Scan evrp instead of vrp1.
Signed-off-by: Kyrylo Tkachov <ktkachov@nvidia.com>
/* { dg-do compile } */
-/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-vrp1" } */
+/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-evrp" } */
int f(int x, int y)
{
/* We should have computed x ^ y as zero and propagated the result into the
PHI feeding the result. */
-/* { dg-final { scan-tree-dump "ret_\[0-9\]+ = PHI <\[01\]\\\(\[0-9\]+\\\), \[01\]\\\(\[0-9\]+\\\)>" "vrp1" } } */
+/* { dg-final { scan-tree-dump "ret_\[0-9\]+ = PHI <\[01\]\\\(\[0-9\]+\\\), \[01\]\\\(\[0-9\]+\\\)>" "evrp" } } */