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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 05:12:02 PDT 2024


================
@@ -16,7 +16,6 @@ declare hidden i32 @strcmp(ptr nocapture, ptr nocapture) #1
 define amdgpu_kernel void @test_memcmp(ptr addrspace(1) %x, ptr addrspace(1) %y, ptr nocapture %p) #0 {
 entry:
   %cmp = tail call i32 @memcmp(ptr addrspace(1) %x, ptr addrspace(1) %y, i64 2)
-  store i32 %cmp, ptr addrspace(1) undef
----------------
arsenm wrote:

Should preserve the dummy use and make volatile, or store to non-undef 

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


More information about the llvm-commits mailing list