[llvm] [SelectionDAG] Preserve volatile undef stores. (PR #99918)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 12:11:40 PDT 2024


================
@@ -255,7 +255,7 @@ define amdgpu_kernel void @marked_kernel_use_other_sgpr(ptr addrspace(1) %ptr) #
   %queue.load = load volatile i8, ptr addrspace(4) %queue.ptr
   %implicitarg.load = load volatile i8, ptr addrspace(4) %implicitarg.ptr
   %dispatch.load = load volatile i8, ptr addrspace(4) %dispatch.ptr
-  store volatile i64 %dispatch.id, ptr addrspace(1) %ptr
+  store i64 %dispatch.id, ptr addrspace(1) %ptr
----------------
arsenm wrote:

Why did this lose a volatile? 

https://github.com/llvm/llvm-project/pull/99918


More information about the llvm-commits mailing list