[all-commits] [llvm/llvm-project] bca744: [AMDGPU] Lower uniform uaddsat.i16 to SALU instruc...
Anshil Gandhi via All-commits
all-commits at lists.llvm.org
Mon Jul 27 13:55:09 PDT 2026
Branch: refs/heads/users/gandhi56/amdgpu-isel/uaddsat-i16-gcnpat
Home: https://github.com/llvm/llvm-project
Commit: bca744caf6189a47e04fca4b93e3d84a6bdbd67e
https://github.com/llvm/llvm-project/commit/bca744caf6189a47e04fca4b93e3d84a6bdbd67e
Author: Anshil Gandhi <Anshil.Gandhi at amd.com>
Date: 2026-07-27 (Mon, 27 Jul 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
M llvm/test/CodeGen/AMDGPU/uaddsat.ll
Log Message:
-----------
[AMDGPU] Lower uniform uaddsat.i16 to SALU instructions
Promote uniform i16 uadd.sat to i32 in promoteUniformOpToI32 so it
lowers to SALU (s_add_i32 + s_min_u32) instead of VALU + readfirstlane.
The saturating add on zero-extended operands reduces to
umin(add(lhs, rhs), 0xffff).
Co-authored-by: Cursor <cursoragent at cursor.com>
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