* asan.c (create_cond_insert_point): Maintain profile.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ifc-11.c
blob10f3d534adcadefbf2c2dbd8e101532e357ed819
1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fdump-tree-ifcvt-stats-blocks-details" } */
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" } } */
22 /* We insert into code
23 if (LOOP_VECTORIZED (...))
24 which is folded by vectorizer. Both outgoing edges must have probability
25 100% so the resulting profile match after folding. */
26 /* { dg-final { scan-tree-dump-times "Invalid sum of outgoing probabilities 200.0" 1 "ifcvt" } } */
27 /* { dg-final { scan-tree-dump-times "Invalid sum of incoming counts" 1 "ifcvt" } } */