JIT: Refactor physical promotion in preparation of generalized assignment decompositi...
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Thu, 4 May 2023 10:11:14 +0000 (12:11 +0200)
committerGitHub <noreply@github.com>
Thu, 4 May 2023 10:11:14 +0000 (12:11 +0200)
commit2e17200fc6782beac0b63c290628dbf79ff13650
tree84ccb2c938265db6956789ee473fa829d278c941
parent3232ad36a791b7b8dce81c3358cd6cec4e42c06e
JIT: Refactor physical promotion in preparation of generalized assignment 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.
src/coreclr/jit/CMakeLists.txt
src/coreclr/jit/promotion.cpp
src/coreclr/jit/promotion.h
src/coreclr/jit/promotiondecomposition.cpp [new file with mode: 0644]