[PATCH] D82788: AMDGPU: Fix alignment requirements for 96bit and 128bit local loads and stores

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 13:53:53 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPU.td:109
+// LDS alignment enforcement is controlled by a configuration register:
+// SH_MEM_CONFIG.alignment_mode
+def FeatureUnalignedDSAccess : SubtargetFeature<"unaligned-ds-access",
----------------
I believe this also controls vmem, so the "dynamic" control could be named something not-DS specific like "unaligned-access-mode" or something?


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPU.td:116-120
+def FeatureRequiresDSAlignment : SubtargetFeature<"requires-ds-alignment",
+  "RequiresDSAlignment",
+  "true",
+  "Requires 16 byte alignment for certain local and region loads and stores"
+>;
----------------
It would be better to invert this, so requiring aligned access it the default. unaligned-ds-access?


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

https://reviews.llvm.org/D82788





More information about the llvm-commits mailing list