Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip stp/ldp only for unwind portion of prolog/epilog #85657

Merged
merged 4 commits into from
May 3, 2023

Conversation

kunalspathak
Copy link
Member

@kunalspathak kunalspathak commented May 2, 2023

This is the last portion remaining in #81278. We will do peephole optimizations of replacing ldr/str with pair instructions ldp/stp in prolog as well. We will skip the portion of the prolog where we are generating code for unwind.

Fixes: #81278

@ghost ghost assigned kunalspathak May 2, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label May 2, 2023
@ghost
Copy link

ghost commented May 2, 2023

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

Issue Details

This is the last portion remaining in #81278. We will now skip peephole optimizations only if we are generating code in unwind.

Author: kunalspathak
Assignees: kunalspathak
Labels:

area-CodeGen-coreclr

Milestone: -

@kunalspathak
Copy link
Member Author

Diffs are great.

image

cc: @a74nh , @SwapnilGaikwad

@kunalspathak kunalspathak marked this pull request as ready for review May 2, 2023 18:14
@kunalspathak
Copy link
Member Author

@dotnet/jit-contrib

@kunalspathak kunalspathak requested a review from BruceForstall May 2, 2023 18:14
@kunalspathak
Copy link
Member Author

/azp run runtime-coreclr gcstress0x3-gcstress0xc, runtime-coreclr jitstress

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Member

@BruceForstall BruceForstall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion

src/coreclr/jit/unwindamd64.cpp Show resolved Hide resolved
src/coreclr/jit/unwindamd64.cpp Show resolved Hide resolved
@kunalspathak
Copy link
Member Author

@kunalspathak
Copy link
Member Author

@BruceForstall - I didn't realize that I didn't push a change that renames unwindarm.cpp to unwindarmarch.cpp. Pushed it now.

@kunalspathak kunalspathak merged commit 372b01f into dotnet:main May 3, 2023
@kunalspathak kunalspathak deleted the peep-prolog-epilog branch May 3, 2023 03:28
@ghost ghost locked as resolved and limited conversation to collaborators Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generalize Arm64 ldr/str to ldp/stp optimization
2 participants