[llvm] [SPIRV] Respect source alignment when lowering memory copies (PR #228859)
Dmitry Sidorov via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 4 12:54:18 PDT 2026
================
@@ -14,13 +16,14 @@ entry:
call void @llvm.lifetime.start.p0(i64 8, ptr %0)
%1 = bitcast ptr %b to ptr
call void @llvm.memcpy.p0.p2.i32(ptr align 4 %1, ptr addrspace(2) align 4 @__const.foo.b, i32 8, i1 false)
-; CHECK: OpCopyMemorySized %[[#]] %[[#]] %[[#]] Aligned 4
+; CHECK: OpCopyMemorySized %[[#]] %[[#]] %[[#]] Aligned 4{{$}}
----------------
MrSidims wrote:
Shouldn't it be rather split into
; SPV13: OpCopyMemorySized %[[#]] %[[#]] %[[#]] Aligned 4
and
; SPV14: OpCopyMemorySized %[[#]] %[[#]] %[[#]] Aligned 4 Aligned 1
?
https://github.com/llvm/llvm-project/pull/228859
More information about the llvm-commits
mailing list