Skip to content

Add Conditional nodes and Arm64 code generation - #71616

Merged
kunalspathak merged 1 commit into
dotnet:mainfrom
a74nh:github_a74nh_csel_codegen
Jul 5, 2022
Merged

Add Conditional nodes and Arm64 code generation#71616
kunalspathak merged 1 commit into
dotnet:mainfrom
a74nh:github_a74nh_csel_codegen

Conversation

@a74nh

@a74nha74nh commented Jul 4, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@ghostghost added 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 labels Jul 4, 2022
@ghost

ghost commented Jul 4, 2022

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

null

Author:a74nh
Assignees:-
Labels:

area-CodeGen-coreclr

Milestone:-

@a74nh

a74nh commented Jul 4, 2022

Copy link
Copy Markdown
ContributorAuthor

This patch is a subset of #67894
It contains just the definition of the nodes plus the Arm64 code generation.

with this patch nothing uses the conditional nodes, so the impact on code gen should be zero.

@kunalspathak

Copy link
Copy Markdown
Contributor

For completion, this should also include changes to LSRA, right?

@a74nh

a74nh commented Jul 5, 2022

Copy link
Copy Markdown
ContributorAuthor

For completion, this should also include changes to LSRA, right?

Yes, it probably should. I'll add it in.

For reference, these are the files I've got in the next patch after this:

 src/coreclr/jit/compiler.h | 28 +++++++++++++++++++++++
src/coreclr/jit/compiler.hpp | 21 +++++++++++++++++
src/coreclr/jit/gentree.cpp | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
src/coreclr/jit/gentree.h | 10 ++++++++
src/coreclr/jit/lir.cpp | 4 ++--
src/coreclr/jit/liveness.cpp | 10 +++++++-
src/coreclr/jit/lower.cpp | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
src/coreclr/jit/lower.h | 4 ++--
src/coreclr/jit/lowerarmarch.cpp | 8 +++++++
src/coreclr/jit/lowerxarch.cpp | 20 ++++++++++------
src/coreclr/jit/lsraarm64.cpp | 18 +++++++++++++++
11 files changed, 328 insertions(+), 53 deletions(-)

@kunalspathakkunalspathak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A question, but overall LGTM.

emitDispImm(cfi.imm5, true);
emitDispFlags(cfi.flags);
printf(",");
printf(",");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why this change?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

It gives us: ccmp w1, #10, z, lt
instead of ccmp w1, #10, z,lt

@kunalspathak

Copy link
Copy Markdown
Contributor

these are the files I've got in the next patch after this:

Thanks, that should be fine then. I will just rerun the failing job before merging.

@kunalspathak
kunalspathak merged commit 5384c95 into dotnet:mainJul 5, 2022
@a74nh

a74nh commented Jul 6, 2022

Copy link
Copy Markdown
ContributorAuthor

Next part is here: #71705

@a74nh
a74nh deleted the github_a74nh_csel_codegen branch July 6, 2022 10:44
@ghostghost locked as resolved and limited conversation to collaborators Aug 5, 2022
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.

2 participants

@a74nh@kunalspathak