[all-commits] [llvm/llvm-project] 4b072b: clang/AMDGPU: Fix workgroup size builtins for nonu...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Fri Mar 6 12:21:21 PST 2026
Branch: refs/heads/users/arsenm/clang/amdgpu-fix-nonuniform-work-group-size-workgroup-size-builtins
Home: https://github.com/llvm/llvm-project
Commit: 4b072b7a6eda9b9996b7870704da16c37c687409
https://github.com/llvm/llvm-project/commit/4b072b7a6eda9b9996b7870704da16c37c687409
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2026-03-06 (Fri, 06 Mar 2026)
Changed paths:
M clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
M clang/test/CodeGen/amdgpu-abi-version.c
M clang/test/CodeGenCUDA/amdgpu-workgroup-size.cu
A clang/test/CodeGenOpenCL/builtins-amdgcn-workgroup-size.cl
M clang/test/CodeGenOpenCL/builtins-amdgcn.cl
M clang/test/Headers/gpuintrin.c
Log Message:
-----------
clang/AMDGPU: Fix workgroup size builtins for nonuniform work group sizes
These were assuming uniform work group sizes. Emit the v4 and v5 sequences
to take the remainder group for the nonuniform case.
Currently the device libs uses this builtin on the legacy ABI path with
the same sequence to calculate the remainder, and fully implements the v5
path. If you perform a franken-build of the library with the updated builtin,
the result is worse. The duplicate sequence does not fully fold out. However,
it does not appear to be wrong. The relevant conformance tests still pass.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list