1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
11 A
: __attribute__((cold
))
15 B
: __attribute__((hot
))
20 /* { dg-final { scan-tree-dump-times "hot label heuristics" 1 "profile_estimate" } } */
21 /* { dg-final { scan-tree-dump-times "cold label heuristics" 1 "profile_estimate" } } */
22 /* { dg-final { scan-tree-dump-times "combined heuristics: 10.00%" 1 "profile_estimate" } } */
24 /* Note: we're attempting to match some number > 6000, i.e. > 60%.
25 The exact number ought to be tweekable without having to juggle
26 the testcase around too much. */
27 /* { dg-final { scan-tree-dump-times "combined heuristics: 90.00%" 1 "profile_estimate" } } */