[PATCH] D125985: [AMDGPU] Mark s_get_waveid_in_workgroup as not reading memory
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 19 13:26:29 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9ece0518471a: [AMDGPU] Mark s_get_waveid_in_workgroup as not reading memory (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125985/new/
https://reviews.llvm.org/D125985
Files:
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/Target/AMDGPU/SMInstructions.td
Index: llvm/lib/Target/AMDGPU/SMInstructions.td
===================================================================
--- llvm/lib/Target/AMDGPU/SMInstructions.td
+++ llvm/lib/Target/AMDGPU/SMInstructions.td
@@ -235,7 +235,7 @@
" $sdst", [(set i32:$sdst, (node))]> {
let hasSideEffects = 1;
let mayStore = 0;
- let mayLoad = 1;
+ let mayLoad = 0;
let has_sbase = 0;
}
Index: llvm/include/llvm/IR/IntrinsicsAMDGPU.td
===================================================================
--- llvm/include/llvm/IR/IntrinsicsAMDGPU.td
+++ llvm/include/llvm/IR/IntrinsicsAMDGPU.td
@@ -1860,7 +1860,7 @@
def int_amdgcn_s_get_waveid_in_workgroup :
GCCBuiltin<"__builtin_amdgcn_s_get_waveid_in_workgroup">,
Intrinsic<[llvm_i32_ty], [],
- [IntrReadMem, IntrInaccessibleMemOnly, IntrWillReturn]>;
+ [IntrNoMem, IntrHasSideEffects, IntrWillReturn]>;
class AMDGPUGlobalAtomicRtn<LLVMType vt> : Intrinsic <
[vt],
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125985.430790.patch
Type: text/x-patch
Size: 932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220519/e51e8a9c/attachment.bin>
More information about the llvm-commits
mailing list