Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Struct copy using movs rather than SSE on x64 #7469

Open
Labels
area-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
Milestone
@benaadams

Description

@benaadams

Assigning a struct to another static variable struct (Memory<T> below)

publicstructMemory<T>:IEquatable<Memory<T>>,IEquatable<ReadOnlyMemory<T>>{readonlyOwnedMemory<T>_owner;readonlyint_id;readonlyint_index;readonlyint_length;}

Can generate amovs copy

movs        qword ptr[rdi],qword ptr[rsi]movs        qword ptr[rdi],qword ptr[rsi]

Would this be better as a SSE copy?

movdquxmm0,xmmword ptr[rsi]movdqu      xmmword ptr[rdi],xmm0

As seen indotnet/corefxlab#1227 (comment)

/cc@mikedn
category:cq
theme:block-opts
skill-level:intermediate
cost:small
impact:medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-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


      [8]ページ先頭

      ©2009-2025 Movatter.jp