(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
ssa-fre-101.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O -fdump-tree-fre1-details" } */
       3  
       4  int test1 (int i, int j)
       5  {
       6    int k;
       7    if (i != j)
       8      k = i;
       9    else
      10      k = j;
      11    return k;
      12  }
      13  
      14  int test2 (int i, int j)
      15  {
      16    int k;
      17    if (i != j)
      18      k = j;
      19    else
      20      k = i;
      21    return k;
      22  }
      23  
      24  int test3 (int i, int j)
      25  {
      26    int k;
      27    if (i == j)
      28      k = j;
      29    else
      30      k = i;
      31    return k;
      32  }
      33  
      34  int test4 (int i, int j)
      35  {
      36    int k;
      37    if (i == j)
      38      k = i;
      39    else
      40      k = j;
      41    return k;
      42  }
      43  
      44  /* We'd expect 4 hits but since we only keep one forwarder the
      45     VN predication machinery cannot record something for the entry
      46     block since it doesn't work on edges but on their source.  */
      47  /* { dg-final { scan-tree-dump-times "equal on edge" 2 "fre1" } } */