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

JIT: Refactor physical promotion in preparation of generalized assignment decomposition #85728

Merged
merged 1 commit into from
May 4, 2023

Conversation

jakobbotsch
Copy link
Member

@jakobbotsch jakobbotsch commented May 3, 2023

This refactors physical promotion to make the generalized assignment decomposition PR more manageable to review.

  • Pull Replacement and ReplaceVisitor into the header
  • Introduce promotiondecomposition.cpp that deals with handling assignments, and move relevant code from promotion.cpp to this file
  • Rename StatementList -> DecompositionStatementList and unnest it
  • Rename Replacement::Name -> Replacement::Description which is more fitting

Also adds some more JITDUMPs when picking promotions, but otherwise should not affect behavior.

…ment decomposition

This refactors the physical promotion to make the generalized assignment
decomposition PR more manageable to review.

* Pull Replacement and ReplaceVisitor into the header
* Introduce promotiondecomposition.cpp that deals with handling
  assignments
* Rename StatementList -> DecompositionStatementList and unnest it

Also adds some more JITDUMPs when picking promotions, but otherwise
should not affect behavior.
@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 May 3, 2023
@ghost ghost assigned jakobbotsch May 3, 2023
@ghost
Copy link

ghost commented May 3, 2023

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

Issue Details

This refactors physical promotion to make the generalized assignment decomposition PR more manageable to review.

  • Pull Replacement and ReplaceVisitor into the header
  • Introduce promotiondecomposition.cpp that deals with handling assignments
  • Rename StatementList -> DecompositionStatementList and unnest it

Also adds some more JITDUMPs when picking promotions, but otherwise should not affect behavior.

Author: jakobbotsch
Assignees: jakobbotsch
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib PTAL @AndyAyersMS. Should be no difference in behavior.

@jakobbotsch jakobbotsch merged commit 2e17200 into dotnet:main May 4, 2023
@jakobbotsch jakobbotsch deleted the physical-promotion-refactor branch May 4, 2023 10:11
@ghost ghost locked as resolved and limited conversation to collaborators Jun 3, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants