Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
145 | 2 /* { dg-options "-O2 -fdisable-tree-evrp -fdump-tree-profile_estimate -fno-finite-loops" } */ |
111 | 3 |
4 extern int global; | |
5 extern int global2; | |
6 extern int global3; | |
7 | |
8 void foo (int base) | |
9 { | |
10 int i; | |
11 while (global < 10) | |
12 { | |
13 if(global || global2 || global3) | |
14 return; | |
15 | |
16 for (i = base; i < 10; i++) | |
17 if (i > 123) | |
18 return; | |
19 } | |
20 } | |
21 | |
131 | 22 /* { dg-final { scan-tree-dump-times "first match heuristics: 2.20%" 3 "profile_estimate"} } */ |
23 /* { dg-final { scan-tree-dump-times "first match heuristics: 5.50%" 1 "profile_estimate"} } */ |