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

Fix test failure from #113051 #113128

Merged
merged 3 commits into from
Mar 5, 2025
Merged

Conversation

snickolls-arm
Copy link
Contributor

Ensures GT_NEG -> GT_CAST contained by a comparison node forces the node being casted into a register during lowering, to avoid trying to generate code for an incompatible memory operation.

Ensures GT_NEG -> GT_CAST contained by a comparison node forces
the node being casted into a register during lowering, to avoid trying
to generate code for an incompatible memory operation.
@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 Mar 4, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 4, 2025
Copy link
Contributor

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

// cmn (extended-register): GT_EQ -> GT_NEG -> GT_CAST -> ...
cast = op->gtGetOp1();
}
if (cast)
Copy link
Member

Choose a reason for hiding this comment

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

nit: use curly braces

if (cast)
{
  cast->AsCast()->CastOp()->ClearRegOptional();
}

Copy link
Member

Choose a reason for hiding this comment

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

@snickolls-arm - I will let you fix this in subsequent PR

Copy link
Member

@kunalspathak kunalspathak left a comment

Choose a reason for hiding this comment

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

LGTM

@kunalspathak
Copy link
Member

/ba-g infra issue dotnet/dnceng#5144

@kunalspathak kunalspathak merged commit 4c6a706 into dotnet:main Mar 5, 2025
111 of 116 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

2 participants