annotate gcc/testsuite/gcc.dg/tree-ssa/ifc-pr69489-1.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 "-O2 -ftree-vectorize -fdump-tree-ifcvt-stats-blocks-details" { target *-*-* } } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 void foo (int a[], int b[])
kono
parents:
diff changeset
5 {
kono
parents:
diff changeset
6 int i;
kono
parents:
diff changeset
7 for (i = 0; i < 100; i++)
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 if (a[i] == 0)
kono
parents:
diff changeset
10 a[i] = b[i]*4;
kono
parents:
diff changeset
11 else
kono
parents:
diff changeset
12 a[i] = b[i]*3;
kono
parents:
diff changeset
13 }
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 /* We insert into code
kono
parents:
diff changeset
19 if (LOOP_VECTORIZED (...))
kono
parents:
diff changeset
20 which is folded by vectorizer. Both outgoing edges must have probability
kono
parents:
diff changeset
21 100% so the resulting profile match after folding. */
kono
parents:
diff changeset
22 /* { 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
23 /* { dg-final { scan-tree-dump-times "Invalid sum of incoming counts" 1 "ifcvt" } } */