[all-commits] [llvm/llvm-project] 74ccc4: [AMDGPU] Lower uniform uaddsat.i16 to SALU instruc...
Anshil Gandhi via All-commits
all-commits at lists.llvm.org
Mon Aug 3 21:44:35 PDT 2026
Branch: refs/heads/users/gandhi56/amdgpu-isel/uaddsat-i16-gcnpat
Home: https://github.com/llvm/llvm-project
Commit: 74ccc44d4a0ef854ccd0da4615482412a134b47f
https://github.com/llvm/llvm-project/commit/74ccc44d4a0ef854ccd0da4615482412a134b47f
Author: Anshil Gandhi <Anshil.Gandhi at amd.com>
Date: 2026-08-04 (Tue, 04 Aug 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