Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-prof/time-profiler-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-options "-O2 -fdump-ipa-profile" } */ |
2 | |
3 __attribute__ ((noinline)) | |
4 int foo() | |
5 { | |
6 return 0; | |
7 } | |
8 | |
9 __attribute__ ((noinline)) | |
10 int bar() | |
11 { | |
12 return 1; | |
13 } | |
14 | |
15 int main () | |
16 { | |
17 return foo (); | |
18 } | |
145 | 19 /* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 0" 1 "profile"} } */ |
111 | 20 /* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 1" 1 "profile"} } */ |
21 /* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 2" 1 "profile"} } */ |