aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-91.c
blob: 4999a3b66ab79173782ea022fa5607284a05040b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-fre4" } */

extern void foo(void);

static int a[2], b, *c[2];

int main() {
  for (b = 0; b < 2; b++)
    c[b] = &a[1];
  if (!c[0])
    foo();
  return 0;
}

/* Even when vectorizing we should eliminate the call to foo.  */
/* { dg-final { scan-tree-dump-not "foo" "fre4" } } */