[llvm] [AMDGPU][NFC] Pre-commit memcpy test with complex constant length (PR #182170)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 08:54:49 PST 2026


================
@@ -58,7 +62,7 @@ define amdgpu_kernel void @_start(ptr %ptr) {
 ; CHECK-NEXT:    s_cbranch_vccnz .LBB0_5
 ; CHECK-NEXT:  .LBB0_6: ; %dynamic-memcpy-post-expansion
 ; CHECK-NEXT:    s_endpgm
-  call void @llvm.memcpy.p0.p4.i64(ptr %ptr, ptr addrspace(4) null, i64 add (i64 sub (i64 16, i64 ptrtoint (ptr addrspacecast (ptr addrspace(4) null to ptr) to i64)), i64 13), i1 false)
+  call void @llvm.memcpy.p0.p4.i64(ptr %ptrDst, ptr addrspace(4) %ptrSrc, i64 add (i64 sub (i64 16, i64 ptrtoint (ptr addrspacecast (ptr addrspace(4) null to ptr) to i64)), i64 13), i1 false)
----------------
LU-JOHN wrote:

Use global variables for src/dst.

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


More information about the llvm-commits mailing list