Home
last modified time | relevance | path

Searched refs:prob (Results 1 – 25 of 80) sorted by relevance

1234

/llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.discrete/
H A Deval.pass.cpp81 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 Deval_param.pass.cpp42 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 Deval.pass.cpp54 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 Deval_param.pass.cpp56 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 Dbuiltin-expect-with-probability.cpp28 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 Dfsafdo_test2.ll58 ; 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 Dbuiltin-expect-with-probability.cpp31 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 Doptimization-remarks-lazy-bfi.ll4 ; 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 DPR37334-break-crit-edges-require-dt.ll2 ; 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 Dremap.ll1 …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 Dthumb2-size-reduction-internal-flags.ll16 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 Dindirectbr.ll3 …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 Dlarge_count_remarks.ll2 …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 Dthread-prob-6.ll1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
H A Dthread-prob-4.ll1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
H A Dthread-prob-2.ll1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
H A Dthread-prob-5.ll1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
H A Dthread-prob-3.ll1 ; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
H A Dthread-prob-1.ll1 ; 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 Ddeopt-intrinsic.ll1 ; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s
H A Dfcmp.ll1 ; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s
/llvm-project-15.0.7/llvm/test/Transforms/IRCE/
H A Dbug-loop-varying-upper-limit.ll2 ; RUN: opt -irce-print-changed-loops -S -verify-loop-info -passes='require<branch-prob>,irce,verify…
H A Dskip-profitability-checks.ll2 ; RUN: opt -irce-skip-profitability-checks -S -verify-loop-info -passes='require<branch-prob>,irce'…
H A Dlow-becount.ll4 ; TODO: opt -irce-print-changed-loops -verify-loop-info -passes='require<branch-prob>,irce' -S < %s…
H A Dbad-loop-structure.ll2 ; RUN: opt -S -passes='require<branch-prob>,irce' -irce-print-changed-loops=true < %s | FileCheck %s

1234