annotate gcc/testsuite/gcc.dg/predict-9.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 /* { dg-options "-O2 -fdisable-tree-evrp -fdump-tree-profile_estimate -fno-finite-loops" } */
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 extern int global;
kono
parents:
diff changeset
5 extern int global2;
kono
parents:
diff changeset
6 extern int global3;
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 void foo (int base)
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 int i;
kono
parents:
diff changeset
11 while (global < 10)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 if(global || global2 || global3)
kono
parents:
diff changeset
14 return;
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 for (i = base; i < 10; i++)
kono
parents:
diff changeset
17 if (i > 123)
kono
parents:
diff changeset
18 return;
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20 }
kono
parents:
diff changeset
21
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
22 /* { dg-final { scan-tree-dump-times "first match heuristics: 2.20%" 3 "profile_estimate"} } */
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
23 /* { dg-final { scan-tree-dump-times "first match heuristics: 5.50%" 1 "profile_estimate"} } */