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

Do not propagate RHS flags in block morphing #66291

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Mar 7, 2022

It is not necessary to copy flags from the source node to the field nodes when doing a field-by-field copy in block morphing. In fact, it can be a pessimization in cases where the source node had NO_CSE set, which would block constant propagation.

Broadly good diffs, with a couple size regressions due to said constant propagation not always being better.

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

ghost commented Mar 7, 2022

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

Issue Details

It is not necessary to copy flags from the source node to the field nodes when doing a field-by-field copy in block morphing. In fact, it can be a pessimization in cases where the source node had NO_CSE set, which would block constant propagation.

We're expecting broadly good diffs, with a couple size regressions due to said constant propagation not always being better.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@SingleAccretion SingleAccretion marked this pull request as ready for review March 7, 2022 15:38
@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib

It is not necessary to copy flags from the source node to the field nodes
when doing a field-by-field copy in block morphing. In fact, it can be a
pessimization in cases where the source node had NO_CSE set, which would
block constant propagation.
@AndyAyersMS AndyAyersMS merged commit 60f593b into dotnet:main Mar 9, 2022
@SingleAccretion SingleAccretion deleted the No-No-CSE-Again branch March 29, 2022 18:10
@ghost ghost locked as resolved and limited conversation to collaborators Apr 28, 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.

2 participants