[PATCH] D128664: AMDGPU: Add gfx11 feature to force initializing 16 input SGPRs

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 04:06:20 PDT 2022


foad added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPU.td:1271
   !listconcat(FeatureISAVersion11_Common.Features,
-    [])>;
+    [FeatureUserSGPRInit16Bug])>;
 
----------------
Should apply to gfx1100 but not gfx1101.


================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:2102
                                            bool IsShader) const {
+  if (Subtarget->hasUserSGPRInit16Bug()) {
+    // Pad up the used user SGPRs with dead inputs.
----------------
Should only do this in wave32 mode.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128664/new/

https://reviews.llvm.org/D128664



More information about the llvm-commits mailing list