Skip to content

Intrinsify Unsafe.Read/Write/Copy, handle struct BitCast - #85562

Merged
EgorBo merged 64 commits into
dotnet:mainfrom
MichalPetryka:bitcast-indir
Jul 23, 2023
Merged

Intrinsify Unsafe.Read/Write/Copy, handle struct BitCast#85562
EgorBo merged 64 commits into
dotnet:mainfrom
MichalPetryka:bitcast-indir

Conversation

@MichalPetryka

@MichalPetrykaMichalPetryka commented Apr 29, 2023

Copy link
Copy Markdown
Contributor

Implements Unsafe.Read/Write/Copy (and the unaligned versions) as JIT intrinsics.

Fixes bugs with small type params not being correctly extended in bitcast.

Handles structs in Unsafe.BitCast via intrinsic.

Contributes to #69220.
Fixes#55357.

@ghostghost added community-contribution Indicates that the PR has been added by a community member area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels Apr 29, 2023
@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Implements Unsafe.Read/Write (and the unaligned versions) as JIT intrinsics.

Handles structs in Unsafe.BitCast via intrinsic.

Contributes to #69220.

Author:MichalPetryka
Assignees:-
Labels:

area-CodeGen-coreclr, community-contribution

Milestone:-

@MichalPetryka
MichalPetryka marked this pull request as ready for review April 30, 2023 18:35
Comment threadsrc/coreclr/jit/gentree.cpp Outdated
Comment threadsrc/coreclr/jit/importercalls.cpp Outdated
@MichalPetryka

Copy link
Copy Markdown
ContributorAuthor

I'll be unable to respond to reviews for a few weeks, I've asked @thatbakamono to apply any feedback though.

@EgorBo

Copy link
Copy Markdown
Member

/azp run runtime-coreclr outerloop, runtime-extra-platforms, runtime-coreclr pgostress

@azure-pipelines

Copy link
Copy Markdown

No commit pushedDate could be found for PR 85562 in repo dotnet/runtime

@EgorBo

Copy link
Copy Markdown
Member

/azp run runtime-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown

No commit pushedDate could be found for PR 85562 in repo dotnet/runtime

@EgorBo

Copy link
Copy Markdown
Member

/azp run runtime-coreclr jitstress

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@EgorBo

Copy link
Copy Markdown
Member

Can you please rebase it - CI should be better now

@MichalPetryka

Copy link
Copy Markdown
ContributorAuthor

@MihuBot

@EgorBo

Copy link
Copy Markdown
Member

Thanks!

@AndyAyersMS

Copy link
Copy Markdown
Member

@AndyAyersMS

Copy link
Copy Markdown
Member

@ghostghost locked as resolved and limited conversation to collaborators Aug 31, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIcommunity-contributionIndicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unsafe.As resulting in lots of unnecessary moves.

5 participants

@MichalPetryka@JulieLeeMSFT@EgorBo@AndyAyersMS@SingleAccretion