Debian Codegraph @

gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c

raw
1 /* { dg-options "-O2 -fdump-ipa-profile -fprofile-update=atomic -fno-ipa-vrp" } */
2 /* { dg-require-effective-target profile_update_atomic } */
3
4 __attribute__ ((noinline))
5 int foo()
6 {
7 return 0;
8 }
9
10 __attribute__ ((noinline))
11 int bar()
12 {
13 return 1;
14 }
15
16 int main ()
17 {
18 return foo ();
19 }
20 /* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 0" 1 "profile"} } */
21 /* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 1" 1 "profile"} } */
22 /* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 2" 1 "profile"} } */