| /llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.discrete/ |
| H A D | eval.pass.cpp | 81 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in tests() 138 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in tests() 157 if (prob[i] != 0) in tests() 158 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in tests() 179 if (prob[i] != 0) in tests() 180 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in tests() 202 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in tests() 224 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in tests() 246 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in tests() 268 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in tests() [all …]
|
| H A D | eval_param.pass.cpp | 42 std::vector<double> prob = p.probabilities(); in main() local 44 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.pconst/ |
| H A D | eval.pass.cpp | 54 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test1() 68 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); in test1() 117 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test2() 180 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test3() 243 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test4() 306 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test5() 369 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test6() 432 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test7() 495 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test8() 558 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test9() [all …]
|
| H A D | eval_param.pass.cpp | 56 std::vector<double> prob(std::begin(p), std::end(p)); in main() local 57 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in main() 58 for (std::size_t i = 0; i < prob.size(); ++i) in main() 59 prob[i] /= s; in main() 67 if (prob[i] == 0) in main() 71 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); in main()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | builtin-expect-with-probability.cpp | 28 static constexpr int prob = 1; member 37 if (__builtin_expect_with_probability (x == 100, 1, T::prob)) { in expect_taken_template() 84 constexpr double prob = 0.8; variable 93 switch(__builtin_expect_with_probability(stuff, stuff, prob)) { in variable_expected()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | fsafdo_test2.ll | 58 ; LOADER: Set branch fs prob: MBB (1 -> 3): unroll.c:22:11-->unroll.c:24:11 W=283590 0x40000000 / … 59 ; LOADER: Set branch fs prob: MBB (1 -> 2): unroll.c:22:11 W=283590 0x40000000 / 0x80000000 = 50.0… 60 ; LOADER: Set branch fs prob: MBB (3 -> 5): unroll.c:24:11-->unroll.c:22:11 W=283590 0x30000000 / … 61 ; LOADER: Set branch fs prob: MBB (3 -> 4): unroll.c:24:11 W=283590 0x50000000 / 0x80000000 = 62.5… 62 ; LOADER: Set branch fs prob: MBB (5 -> 8): unroll.c:22:11-->unroll.c:24:11 W=283590 0x40000000 / … 63 ; LOADER: Set branch fs prob: MBB (5 -> 7): unroll.c:22:11 W=283590 0x40000000 / 0x80000000 = 50.0… 65 ; LOADER: Set branch fs prob: MBB (8 -> 9): unroll.c:24:11 W=283590 0x50000000 / 0x80000000 = 62.5… 67 ; LOADER: Set branch fs prob: MBB (10 -> 11): unroll.c:22:11 W=283590 0x40000000 / 0x80000000 = 50… 69 ; LOADER: Set branch fs prob: MBB (12 -> 13): unroll.c:24:11 W=283590 0x50000000 / 0x80000000 = 62… 71 ; LOADER: Set branch fs prob: MBB (14 -> 15): unroll.c:22:11 W=283590 0x40000000 / 0x80000000 = 50… [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | builtin-expect-with-probability.cpp | 31 static constexpr float prob = 0.7; member 36 if (__builtin_expect_with_probability(x > 0, 1, T::prob)) { in expect_taken()
|
| /llvm-project-15.0.7/llvm/test/Other/ |
| H A D | optimization-remarks-lazy-bfi.ll | 4 ; RUN: -debug-only=block-freq,branch-prob -pass-remarks-with-hotness \ 7 ; RUN: -debug-only=block-freq,branch-prob \ 11 ; RUN: -debug-only=block-freq,branch-prob -pass-remarks-with-hotness \ 14 ; RUN: -debug-only=block-freq,branch-prob \
|
| /llvm-project-15.0.7/llvm/test/Transforms/Util/ |
| H A D | PR37334-break-crit-edges-require-dt.ll | 2 ; RUN: opt < %s -loop-sink -break-crit-edges -branch-prob -S -enable-new-pm=0 | FileCheck %s 4 ; RUN: opt < %s -loop-sink -break-crit-edges -lazy-branch-prob -S -enable-new-pm=0 | FileCheck %s
|
| /llvm-project-15.0.7/llvm/test/Transforms/SampleProfile/ |
| H A D | remap.ll | 1 …le-profile-remapping-file=%S/Inputs/remap.map | opt -passes='print<branch-prob>' -disable-output 2… 5 …le-profile-remapping-file=%S/Inputs/remap.map | opt -passes='print<branch-prob>' -disable-output 2…
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | thumb2-size-reduction-internal-flags.ll | 16 define i32 @simulate(i32 %iterations, %struct.cells* nocapture %present, double %prob, i8* nocaptur… 63 %cmp20 = fcmp olt double %div19, %prob 99 %cmp59 = fcmp olt double %div58, %prob 144 %cmp93 = fcmp olt double %div92, %prob
|
| /llvm-project-15.0.7/llvm/test/Transforms/PGOProfile/ |
| H A D | indirectbr.ll | 3 …alse -pgo-test-profile-file=%t.profdata -S | opt -S -passes='print<branch-prob>' 2>&1 | FileCheck … 7 …rue -pgo-test-profile-file=%t2.profdata -S | opt -S -passes='print<branch-prob>' 2>&1 | FileCheck …
|
| H A D | large_count_remarks.ll | 2 …ofile-file=%t.profdata -pass-remarks=pgo-instrumentation -pgo-emit-branch-prob -S 2>&1| FileCheck …
|
| /llvm-project-15.0.7/llvm/test/Transforms/JumpThreading/ |
| H A D | thread-prob-6.ll | 1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
|
| H A D | thread-prob-4.ll | 1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
|
| H A D | thread-prob-2.ll | 1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
|
| H A D | thread-prob-5.ll | 1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
|
| H A D | thread-prob-3.ll | 1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
|
| H A D | thread-prob-1.ll | 1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
|
| /llvm-project-15.0.7/llvm/test/Analysis/BranchProbabilityInfo/ |
| H A D | deopt-intrinsic.ll | 1 ; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s
|
| H A D | fcmp.ll | 1 ; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s
|
| /llvm-project-15.0.7/llvm/test/Transforms/IRCE/ |
| H A D | bug-loop-varying-upper-limit.ll | 2 ; RUN: opt -irce-print-changed-loops -S -verify-loop-info -passes='require<branch-prob>,irce,verify…
|
| H A D | skip-profitability-checks.ll | 2 ; RUN: opt -irce-skip-profitability-checks -S -verify-loop-info -passes='require<branch-prob>,irce'…
|
| H A D | low-becount.ll | 4 ; TODO: opt -irce-print-changed-loops -verify-loop-info -passes='require<branch-prob>,irce' -S < %s…
|
| H A D | bad-loop-structure.ll | 2 ; RUN: opt -S -passes='require<branch-prob>,irce' -irce-print-changed-loops=true < %s | FileCheck %s
|