annotate gcc/testsuite/gcc.dg/tree-ssa/ifc-9.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
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 "-Ofast -fno-split-loops -fdump-tree-ifcvt-stats-blocks-details" } */
kono
parents:
diff changeset
3 /* { dg-require-visibility "" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 extern int b[256], y;
kono
parents:
diff changeset
6 void bar (int *, int);
kono
parents:
diff changeset
7 int foo (int x, int n)
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 int i;
kono
parents:
diff changeset
10 int a[128];
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 for (i = 0; i < n; i++)
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 a[i] = i;
kono
parents:
diff changeset
15 if (x > i)
kono
parents:
diff changeset
16 y = b[i];
kono
parents:
diff changeset
17 }
kono
parents:
diff changeset
18 bar (a, y);
kono
parents:
diff changeset
19 return 0;
kono
parents:
diff changeset
20 }
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 /* We insert into code
kono
parents:
diff changeset
25 if (LOOP_VECTORIZED (...))
kono
parents:
diff changeset
26 which is folded by vectorizer. Both outgoing edges must have probability
kono
parents:
diff changeset
27 100% so the resulting profile match after folding. */
kono
parents:
diff changeset
28 /* { 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
29 /* { dg-final { scan-tree-dump-times "Invalid sum of incoming counts" 1 "ifcvt" } } */