summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2025-06-11 18:22:05 -0500
committerGitHub <noreply@github.com>2025-06-11 18:22:05 -0500
commitdc4335a2bf75c7b9928a72a7f15df0276120d7ed (patch)
tree191e244a9dd5dc43c493d3823af737cf99b4721e /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentee35e342945d6825c9b2b004fd135cf16c84ea0e (diff)
[libc] Perform bitfield zero initialization wave-parallel (#143607)
Summary: We need to set the bitfield memory to zero because the system does not guarantee zeroed out memory. Even if fresh pages are zero, the system allows re-use so we would need a `kfd` level API to skip this step. Because we can't this patch updates the logic to perform the zero initialization wave-parallel. This reduces the amount of time it takes to allocate a fresh by up to a tenth. This has the unfortunate side effect that the control flow is more convoluted and we waste some extra registers, but it's worth it to reduce the slab allocation latency.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions