Skip to content

Vector128.CopyTo discards R2R #120367

@EgorBo

Description

@EgorBo

Context #120352 (comment)

The following code-snippet when published with R2R, e.g.:

dotnet publish -f net10.0 -r win-x64 --sc -p:PublishReadyToRun=true
using System.Runtime.Intrinsics;

Test();

static ushort[] Test()
{
    ushort[] numbers = new ushort[8];
    Vector128<ushort>.Zero.CopyTo(numbers);
    return numbers;
}

... has to JIT compile Test() with Tier0, although, it clearly is expected to be prejitted.

JitDump

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions