| commit | df1dd803b6a1b1dd514da5e7c1257c0b75592452 | [log] [tgz] |
|---|---|---|
| author | Joseph Huber <huberjn@outlook.com> | Wed Jul 23 13:19:36 2025 -0500 |
| committer | GitHub <noreply@github.com> | Wed Jul 23 13:19:36 2025 -0500 |
| tree | b74edcfdfccdc95e2755044dab63e0e3e74ab03f | |
| parent | 6a9817113838a3f87e803ac71aab46b3ccf24686 [diff] |
[libc] Cache the most recently used slot for a chunk size (#149751) Summary: This patch changes the `find_slab` logic to simply cache the most successful slot. This means the happy fast path is now a single atomic load on this index. I removed the SIMT shuffling logic that did slab lookups wave-parallel. Here I am considering the actual traversal to be comparatively unlikely, so it's not overly bad that it takes longer. ideally one thread finds a slot and shared it with the rest so we only pay that cost once. --------- Co-authored-by: Shilei Tian <i@tianshilei.me>
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.