Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/predict-3.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
3 int test2();
4 int
5 test (int p, int a, int b, int c)
6 {
7 int d;
8 if (p)
9 d = __builtin_expect_with_probability (a, 0, 0.8) * b;
10 else
11 d = __builtin_expect_with_probability (a, 0, 0.8) * c;
12 if (d)
13 test2();
14 }
15 /* { dg-final { scan-tree-dump-times "first match heuristics: 20.00" 1 "profile_estimate"} } */