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

Forward-substitute long calls on 32 bit targets #74502

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Aug 24, 2022

The multi-reg restrictions do not apply to them.

Diffs - a few improvements as expected.

The multi-reg restrictions do not apply to them.
@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 Aug 24, 2022
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Aug 24, 2022
@ghost
Copy link

ghost commented Aug 24, 2022

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

Issue Details

The multi-reg restrictions do not apply to them.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr, community-contribution

Milestone: -

Comment on lines -694 to -701
#if defined(TARGET_X86) || defined(TARGET_ARM)
if (fwdSubNode->TypeGet() == TYP_LONG)
{
JITDUMP(" TYP_LONG fwd sub node, target is x86/arm\n");
return false;
}
#endif // defined(TARGET_X86) || defined(TARGET_ARM)

Copy link
Member

Choose a reason for hiding this comment

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

Just a question. Why do we delete this code that skips TYP_LONG forward substitute node on x86 and arm target?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should not be necessary.

The restriction on substituting multi-reg nodes stems from the fact the backend (LSRA and codegen) can only handle a few select forms of uses for them:

  1. STORE_LCL_VAR(multi-reg node)
  2. RETURN(matching multi-reg call | LCL_VAR)

For structs, these restrictions are enforced by the frontend (mainly importer). For LONGs - by decomposition, which means we don't need to worry about them here.

@SingleAccretion SingleAccretion marked this pull request as ready for review August 25, 2022 09:58
@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib

@JulieLeeMSFT JulieLeeMSFT added this to the 8.0.0 milestone Aug 25, 2022
@AndyAyersMS AndyAyersMS merged commit 8c965ec into dotnet:main Aug 26, 2022
@AndyAyersMS
Copy link
Member

Thanks again for all your hard work.

@SingleAccretion SingleAccretion deleted the FwdSub-Long-Calls branch August 26, 2022 19:18
@ghost ghost locked as resolved and limited conversation to collaborators Sep 26, 2022
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