PR tree-optimization/33562
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ifc-12.c
blob89d42b4d6fd0add66e53d35742aee8778a266cca
1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fdump-tree-ifcvt-stats" } */
3 /* { dg-require-visibility "" } */
5 struct st
7 int a[1024];
8 int b[1024];
9 };
11 struct st s = {0};
12 int foo (int x)
14 int i;
15 struct st *p = &s;
17 for (i = 0; i < 1024; i++)
19 if (x > i)
20 p->a[i] = p->b[i];
23 return 0;
25 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */