[all-commits] [llvm/llvm-project] 1453f8: [AMDGPU][GISel] RegBankLegalize rules for the SAD ...
Chinmay Deshpande via All-commits
all-commits at lists.llvm.org
Wed Aug 5 12:57:46 PDT 2026
Branch: refs/heads/users/chinmaydd/regbanklegalize-sad
Home: https://github.com/llvm/llvm-project
Commit: 1453f81b652af690f4b182fa93da1d674a9bebb8
https://github.com/llvm/llvm-project/commit/1453f81b652af690f4b182fa93da1d674a9bebb8
Author: Chinmay Deshpande <chdeshpa at amd.com>
Date: 2026-08-05 (Wed, 05 Aug 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.msad.u8.ll
M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.sad.hi.u8.ll
M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.sad.u16.ll
M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.sad.u8.ll
Log Message:
-----------
[AMDGPU][GISel] RegBankLegalize rules for the SAD intrinsics
llvm.amdgcn.{sad.u8,sad.hi.u8,sad.u16,msad.u8} all reached
AMDGPURegBankLegalize without a rule and failed with "No AMDGPU
RegBankLegalize rules defined for opcode". They share one shape - an i32
result from three i32 sources, with the clamp operand of the underlying VOP3
left alone - so give them a single rule mapping every source to a VGPR.
Convert the lit tests to autogenerated checks and run them through both
SelectionDAG and GlobalISel.
Co-Authored-By: Claude Opus 5 (1M context) <noreply at anthropic.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