* asan.c (create_cond_insert_point): Maintain profile.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ifc-pr68583.c
blob6739fad9f6ca1fb314f77788bc0b504d0cf01e94
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-ifcvt-blocks-details" } */
4 void foo (long *a)
6 int i;
7 for (i = 0; i < 100; i+=2)
9 long *p = &a[i+1];
10 if (a[i] == 0)
12 *p = 2;
13 a[i] = 3;
15 else
17 *p = 3;
18 a[i] = 4;
23 /* { dg-final { scan-tree-dump "Applying if-conversion" "ifcvt" } } */
24 /* We insert into code
25 if (LOOP_VECTORIZED (...))
26 which is folded by vectorizer. Both outgoing edges must have probability
27 100% so the resulting profile match after folding. */
28 /* { dg-final { scan-tree-dump-times "Invalid sum of outgoing probabilities 200.0" 1 "ifcvt" } } */
29 /* { dg-final { scan-tree-dump-times "Invalid sum of incoming counts" 1 "ifcvt" } } */