Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/predict-4.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ | |
3 | |
4 extern int global; | |
5 | |
6 int bar(int); | |
7 | |
8 void foo (int bound) | |
9 { | |
10 int i, ret = 0; | |
11 for (i = 0; i < 10; i++) | |
12 { | |
13 if (i < 5) | |
14 global += bar (i); | |
15 } | |
16 } | |
17 | |
18 /* { dg-final { scan-tree-dump " loop iv compare heuristics of edge\[^:\]*: 50.0%" "profile_estimate"} } */ |