annotate gcc/testsuite/gcc.dg/tree-ssa/ifc-12.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 -fdump-tree-ifcvt-stats-blocks-details" } */
kono
parents:
diff changeset
3 /* { dg-require-visibility "" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 struct st
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 int a[1024];
kono
parents:
diff changeset
8 int b[1024];
kono
parents:
diff changeset
9 };
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 struct st s = {0};
kono
parents:
diff changeset
12 int foo (int x)
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 int i;
kono
parents:
diff changeset
15 struct st *p = &s;
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 for (i = 0; i < 1024; i++)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 if (x > i)
kono
parents:
diff changeset
20 p->a[i] = p->b[i];
kono
parents:
diff changeset
21 }
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 return 0;
kono
parents:
diff changeset
24 }
kono
parents:
diff changeset
25 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 /* We insert into code
kono
parents:
diff changeset
28 if (LOOP_VECTORIZED (...))
kono
parents:
diff changeset
29 which is folded by vectorizer. Both outgoing edges must have probability
kono
parents:
diff changeset
30 100% so the resulting profile match after folding. */
kono
parents:
diff changeset
31 /* { 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
32 /* { dg-final { scan-tree-dump-times "Invalid sum of incoming counts" 1 "ifcvt" } } */
111
kono
parents:
diff changeset
33