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

Implement GT_AND_NOT for ARM/ARM64 #59881

Merged
merged 4 commits into from
Nov 6, 2021

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Oct 1, 2021

This is a simple implementation of the operator, targeting AArch, but with a structure explicit in its intent to expand this optimization to XArch as well, in the future.

Diffs: win-arm64, linux-arm.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Oct 1, 2021
@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 Oct 1, 2021
@ghost
Copy link

ghost commented Oct 1, 2021

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

Issue Details

This is a simple implementation of the operator, targeting AArch, but with a structure explicit in its intent to expand this optimization XArch as well, in the future.

Diffs: win-arm64.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr, community-contribution

Milestone: -

@SingleAccretion SingleAccretion force-pushed the AArch-CodeGen-Opts branch 2 times, most recently from a35e127 to d90a59e Compare October 1, 2021 23:11
@SingleAccretion SingleAccretion marked this pull request as ready for review October 2, 2021 18:11
@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib, @tannergooding

@SingleAccretion
Copy link
Contributor Author

SingleAccretion commented Oct 5, 2021

Some conflicts need to be fixed.

Edit: fixed.

@SingleAccretion SingleAccretion marked this pull request as draft October 5, 2021 17:11
@SingleAccretion SingleAccretion marked this pull request as ready for review October 6, 2021 00:14
@AndyAyersMS
Copy link
Member

@echesakov can you PTAL?

@echesakov
Copy link
Contributor

@echesakov can you PTAL?

I will take a look.

src/coreclr/jit/lower.cpp Outdated Show resolved Hide resolved
src/coreclr/jit/gtlist.h Outdated Show resolved Hide resolved
@echesakov echesakov self-requested a review October 22, 2021 22:19
Copy link
Contributor

@echesakov echesakov left a comment

Choose a reason for hiding this comment

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

Changes LGTM.
I have one follow-up question.

src/coreclr/jit/lower.cpp Show resolved Hide resolved
@echesakov
Copy link
Contributor

It looks that a similar optimization can be done for OR(op1, NOT(op2)) by utilizing eon instruction on Arm64.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 2021
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 community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants