[all-commits] [llvm/llvm-project] 30f18e: [AMDGPU] Handle SMRD signed offset immediate
Austin Kerbow via All-commits
all-commits at lists.llvm.org
Thu Apr 2 17:42:30 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 30f18ed387c128a12fc1027c066c2f81b6d55fce
https://github.com/llvm/llvm-project/commit/30f18ed387c128a12fc1027c066c2f81b6d55fce
Author: Austin Kerbow <Austin.Kerbow at amd.com>
Date: 2020-04-02 (Thu, 02 Apr 2020)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
M llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-load-constant.mir
M llvm/test/CodeGen/AMDGPU/GlobalISel/smrd.ll
M llvm/test/CodeGen/AMDGPU/smrd.ll
Log Message:
-----------
[AMDGPU] Handle SMRD signed offset immediate
Summary:
This fixes a few issues related to SMRD offsets. On gfx9 and gfx10 we have a
signed byte offset immediate, however we can overflow into a negative since we
treat it as unsigned.
Also, the SMRD SOFFSET sgpr is an unsigned offset on all subtargets. We
sometimes tried to use negative values here.
Third, S_BUFFER instructions should never use a signed offset immediate.
Differential Revision: https://reviews.llvm.org/D77082
More information about the All-commits
mailing list