aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr21463.c
blob: c6f1226d6834565c3dda14b5b57c025abf7bfc9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-phiprop1-details" } */

struct f
{
  int i;
};

int g(int i, int c, struct f *ff, int g)
{
  int *t;
  if (c)
    t = &i;
  else
    t = &ff->i;
  return *t;
}

/* { dg-final { scan-tree-dump-times "Inserting PHI for result of load" 1 "phiprop1" } } */