annotate gcc/testsuite/gcc.dg/tree-ssa/ifc-pr69489-2.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-S -O2 -ftree-vectorize -fdump-tree-ifcvt-stats-blocks-details" { target *-*-* } } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 double
kono
parents:
diff changeset
5 foo (const char *u, const char *v, long n)
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 long i, n1 = 0, n2 = 0;
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 for (i = 0; i < n; i++)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 n2 += (u[i] && !v[i]);
kono
parents:
diff changeset
12 n1 += (!u[i] && v[i]);
kono
parents:
diff changeset
13 }
kono
parents:
diff changeset
14 return (2.0 * n2 * n1);
kono
parents:
diff changeset
15 }
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 /* We insert into code
kono
parents:
diff changeset
20 if (LOOP_VECTORIZED (...))
kono
parents:
diff changeset
21 which is folded by vectorizer. Both outgoing edges must have probability
kono
parents:
diff changeset
22 100% so the resulting profile match after folding. */
kono
parents:
diff changeset
23 /* { dg-final { scan-tree-dump-times "Invalid sum of outgoing probabilities 200.0" 1 "ifcvt" } } */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
24 /* { dg-final { scan-tree-dump-times "Invalid sum of incoming counts" 1 "ifcvt" } } */