Strip only selected predictors after early tree passes (PR tree-optimization/85799).
[official-gcc.git] / gcc / testsuite / gcc.dg / pr85799.c
blob0e937857e297fd6baa8c1658c469afae9d404531
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
4 void unlikely();
5 void likely();
7 inline int expect_false(int b) {
8 return __builtin_expect(b, 0);
11 void inline_func_hint(int b) {
12 if (expect_false(b)) {
13 unlikely();
14 } else {
15 likely();
19 /* { dg-final { scan-tree-dump "_builtin_expect heuristics of edge" "profile_estimate"} } */