[all-commits] [llvm/llvm-project] b07880: [libc++] Replace modulus operations in std::seed_s...
Laramie Leavitt via All-commits
all-commits at lists.llvm.org
Tue May 24 01:30:29 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b07880454ba32e48a2e7f7be35516e0b76f60077
https://github.com/llvm/llvm-project/commit/b07880454ba32e48a2e7f7be35516e0b76f60077
Author: Laramie Leavitt <laramie.leavitt at gmail.com>
Date: 2022-05-24 (Tue, 24 May 2022)
Changed paths:
A libcxx/benchmarks/random.bench.cpp
M libcxx/include/__random/seed_seq.h
Log Message:
-----------
[libc++] Replace modulus operations in std::seed_seq::generate with conditional checks.
Abseil benchmarks suggest that the conditional checks result in faster code (4-5x)
as they are compiled into conditional move instructions (cmov on x86).
Reviewed By: #libc, philnik, Mordante
Spies: pengfei, Mordante, philnik, libcxx-commits
Differential Revision: https://reviews.llvm.org/D125329
More information about the All-commits
mailing list