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

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


================
@@ -36,7 +34,6 @@ define amdgpu_kernel void @test_memchr(ptr addrspace(1) %src, i32 %char, i64 %le
 ; GCN: s_addc_u32 s{{[0-9]+}}, s{{[0-9]+}}, strcpy at rel32@hi+12
 define amdgpu_kernel void @test_strcpy(ptr %dst, ptr %src) #0 {
   %res = call ptr @strcpy(ptr %dst, ptr %src)
-  store ptr %res, ptr addrspace(1) undef
----------------
arsenm wrote:

Really for all of these, should stop storing to undef. The point is to have a dummy use of the value, it doesn't matter what it is 

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


More information about the llvm-commits mailing list