[PATCH] D124483: [AMDGPU] Add both mayLoad and mayStore to MUBUF LDS opcodes

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 17:43:39 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0274811b5a83: [AMDGPU] Add both mayLoad and mayStore to MUBUF LDS opcodes (authored by rampitec).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124483

Files:
  llvm/lib/Target/AMDGPU/BUFInstructions.td


Index: llvm/lib/Target/AMDGPU/BUFInstructions.td
===================================================================
--- llvm/lib/Target/AMDGPU/BUFInstructions.td
+++ llvm/lib/Target/AMDGPU/BUFInstructions.td
@@ -508,7 +508,7 @@
   let Constraints = !if(HasTiedDest, "$vdata = $vdata_in", "");
   let LGKM_CNT = isLds;
   let mayLoad = 1;
-  let mayStore = 0;
+  let mayStore = isLds;
   let maybeAtomic = 1;
   let Uses = !if(isLds, [EXEC, M0], [EXEC]);
   let has_tfe = !not(isLds);
@@ -620,7 +620,7 @@
                  (ins SReg_128:$srsrc, SCSrc_b32:$soffset, offset:$offset, CPol:$cpol, SWZ:$swz),
                  " $srsrc, $soffset$offset lds$cpol$swz"> {
   let LGKM_CNT = 1;
-  let mayLoad = 0;
+  let mayLoad = 1;
   let mayStore = 1;
   let maybeAtomic = 1;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124483.425370.patch
Type: text/x-patch
Size: 773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220427/e82d51b7/attachment.bin>


More information about the llvm-commits mailing list