mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 22:17:47 +00:00
f01cbeb3f2
Add a new builtin-function __builtin_expect_with_probability and intrinsic llvm.expect.with.probability. The interface is __builtin_expect_with_probability(long expr, long expected, double probability). It is mainly the same as __builtin_expect besides one more argument indicating the probability of expression equal to expected value. The probability should be a constant floating-point expression and be in range [0.0, 1.0] inclusive. It is similar to builtin-expect-with-probability function in GCC built-in functions. Differential Revision: https://reviews.llvm.org/D79830 |
||
---|---|---|
.. | ||
basic.ll | ||
expect_nonboolean.ll | ||
expect-with-probability.ll | ||
phi_merge.ll | ||
phi_or.ll | ||
phi_tern.ll | ||
PR33346.ll |