Skip to content

Unsafe.SizeOf<T>() causes an additional mov over sizeof(T) #55472

Closed
@MichalPetryka

Description

@MichalPetryka

Description

In some cases, Unsafe.SizeOf<T> produces an additional mov over sizeof(T) (both over not compile time known types).

Configuration

Sharplab Core CLR v5.0.721.25508

Regression?

No idea.

Data

Sharplab

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMItenet-performancePerformance related issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions