Skip to content

Optimize memory.copy implementation#13368

Merged
cfallin merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:refactor-memory-copy
May 14, 2026
Merged

Optimize memory.copy implementation#13368
cfallin merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:refactor-memory-copy

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This is a dual of #13367 which updates the implementation of the memory.copy intrinsic. The same shape is applied here -- perform validation in compiled code and then delegate via a libcall to the actual host implementation. The intention is to subsume the array_copy_non_gc_ref_elems libcall into this one entirely in a subsequent commit.

This is a dual of bytecodealliance#13367 which updates the implementation of the
`memory.copy` intrinsic. The same shape is applied here -- perform
validation in compiled code and then delegate via a libcall to the
actual host implementation. The intention is to subsume the
`array_copy_non_gc_ref_elems` libcall into this one entirely in a
subsequent commit.
@alexcrichton alexcrichton requested review from a team as code owners May 14, 2026 19:11
@alexcrichton alexcrichton requested review from cfallin and removed request for a team May 14, 2026 19:11
@cfallin cfallin added this pull request to the merge queue May 14, 2026
Merged via the queue into bytecodealliance:main with commit 16b5f97 May 14, 2026
51 checks passed
@alexcrichton alexcrichton deleted the refactor-memory-copy branch May 14, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants