* tree-if-conv.c (tree-ssa-loop.h): Include header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ifc-11.c
blobbacf428ec03dcd65f9ba9927945714f06b794f59
1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fdump-tree-ifcvt-stats" } */
3 /* { dg-require-visibility "" } */
5 int a[1024] = {0.0};
6 int b[1024] = {0.0};
7 int c[1024] = {0.0};
8 int foo (float *x)
10 int i = 0;
12 for (i = 0; i < 1024; i++)
14 c[i] = (x[i] > 0.0) ? a[i] : b[i];
17 return 0;
20 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */