[PATCH] D130347: [AMDGPU] user-sgpr-init16-bug does not apply to gfx1103
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 04:41:55 PDT 2022
foad created this revision.
foad added reviewers: AMDGPU, dstuttard.
Herald added subscribers: kosarev, kerbowa, hiraditya, t-tye, tpr, yaxunl, jvesely, kzhuravl, arsenm.
Herald added a project: All.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130347
Files:
llvm/lib/Target/AMDGPU/AMDGPU.td
llvm/lib/Target/AMDGPU/GCNProcessors.td
llvm/test/CodeGen/AMDGPU/gfx11-user-sgpr-init16-bug.ll
Index: llvm/test/CodeGen/AMDGPU/gfx11-user-sgpr-init16-bug.ll
===================================================================
--- llvm/test/CodeGen/AMDGPU/gfx11-user-sgpr-init16-bug.ll
+++ llvm/test/CodeGen/AMDGPU/gfx11-user-sgpr-init16-bug.ll
@@ -12,6 +12,10 @@
; RUN: llc -global-isel=0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1102 -amdgpu-enable-vopd=0 < %s | FileCheck -check-prefixes=GCN,WORKAROUND %s
; RUN: llc -global-isel=1 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1102 -amdgpu-enable-vopd=0 < %s | FileCheck -check-prefixes=GCN,WORKAROUND %s
+; Does not apply to gfx1103
+; RUN: llc -global-isel=0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1103 -amdgpu-enable-vopd=0 < %s | FileCheck -check-prefixes=GCN,NOWORKAROUND %s
+; RUN: llc -global-isel=1 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1103 -amdgpu-enable-vopd=0 < %s | FileCheck -check-prefixes=GCN,NOWORKAROUND %s
+
; There aren't any stack objects, but we still enable the
; private_segment_wavefront_offset to get to 16, and the workgroup ID
; is in s14.
Index: llvm/lib/Target/AMDGPU/GCNProcessors.td
===================================================================
--- llvm/lib/Target/AMDGPU/GCNProcessors.td
+++ llvm/lib/Target/AMDGPU/GCNProcessors.td
@@ -261,5 +261,5 @@
>;
def : ProcessorModel<"gfx1103", GFX11SpeedModel,
- FeatureISAVersion11_0_2.Features
+ FeatureISAVersion11_0_3.Features
>;
Index: llvm/lib/Target/AMDGPU/AMDGPU.td
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPU.td
+++ llvm/lib/Target/AMDGPU/AMDGPU.td
@@ -1284,6 +1284,10 @@
!listconcat(FeatureISAVersion11_Common.Features,
[FeatureUserSGPRInit16Bug])>;
+def FeatureISAVersion11_0_3 : FeatureSet<
+ !listconcat(FeatureISAVersion11_Common.Features,
+ [])>;
+
//===----------------------------------------------------------------------===//
def AMDGPUInstrInfo : InstrInfo {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130347.446786.patch
Type: text/x-patch
Size: 1888 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220722/04478cdc/attachment.bin>
More information about the llvm-commits
mailing list