Skip to content

Commit

Permalink
JIT: Refactor physical promotion in preparation of generalized assign…
Browse files Browse the repository at this point in the history
…ment decomposition (#85728)

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, 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.
  • Loading branch information
jakobbotsch authored May 4, 2023
1 parent 3232ad3 commit 2e17200
Show file tree
Hide file tree
Showing 4 changed files with 1,050 additions and 995 deletions.
1 change: 1 addition & 0 deletions src/coreclr/jit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ set( JIT_SOURCES
patchpoint.cpp
phase.cpp
promotion.cpp
promotiondecomposition.cpp
rangecheck.cpp
rationalize.cpp
redundantbranchopts.cpp
Expand Down
Loading

0 comments on commit 2e17200

Please sign in to comment.