* asan.c (create_cond_insert_point): Maintain profile.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ifc-8.c
blobc200748650086ab315e1ff4914efe05b2944fac2
2 /* { dg-do compile } */
3 /* { dg-options "-Ofast -fdump-tree-ifcvt-details-blocks -ftree-loop-if-convert-stores" } */
4 /* { dg-require-visibility "" } */
6 #define LEN 4096
7 __attribute__((visibility("hidden"), aligned (32))) float array[LEN] = {};
9 void test ()
11 for (int i = 0; i < LEN; i++)
13 if (array[i] > (float)0.)
14 array[i] = 3;
18 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
20 /* We insert into code
21 if (LOOP_VECTORIZED (...))
22 which is folded by vectorizer. Both outgoing edges must have probability
23 100% so the resulting profile match after folding. */
24 /* { dg-final { scan-tree-dump-times "Invalid sum of outgoing probabilities 200.0" 1 "ifcvt" } } */
25 /* { dg-final { scan-tree-dump-times "Invalid sum of incoming counts" 1 "ifcvt" } } */