Skip to content

JIT: Generating rep movsb for cpblk with non-constant arguments #6464

Closed
@jamesqo

Description

@jamesqo

Separated out from the discussion in dotnet/coreclr#6638

Currently the JIT makes a helper call to JIT_MemCpy for non-constant sizes. If it could generate rep movsb inline instead for amd64/x86, that would be much more efficient. Doing this would allow for a better implementation of Buffer.MemoryCopy, which right now has xmm as the best thing available.

category:cq
theme:block-opts
skill-level:intermediate
cost:medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    JitUntriagedCLR JIT issues needing additional triagearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIenhancementProduct code improvement that does NOT require public API changes/additionsoptimizationtenet-performancePerformance related issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions