Skip to content

Addressing mode was not contained #112692

@xtqqczze

Description

@xtqqczze

We should really just use MemoryMarshal.Write, but the codegen is suboptimal, see sharplab

Looks like a simple addressing mode was not contained. It's just that this PR replaces one unsafe code with another unsafe (a tiny bit better, but still). These APIs allocate, it is unlikely an extra lea makes perf difference here

@jakobbotsch do we have an issue tracking this?

Originally posted by @xtqqczze in #112616 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions