Skip to content

Commit

Permalink
struct improvement, part1: create more LCL_FLD (#48377)
Browse files Browse the repository at this point in the history
* Add additional tests.

* Use LclFld when copy to/from promoted from/to an unpromoted struct/block.

* Response review.
  • Loading branch information
Sergey Andreenko committed Mar 19, 2021
1 parent 93cee26 commit a03a675
Show file tree
Hide file tree
Showing 4 changed files with 1,944 additions and 103 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -5890,6 +5890,8 @@ class Compiler
GenTree* fgMorphSmpOpOptional(GenTreeOp* tree);
GenTree* fgMorphConst(GenTree* tree);

bool fgMorphCanUseLclFldForCopy(unsigned lclNum1, unsigned lclNum2);

GenTreeLclVar* fgMorphTryFoldObjAsLclVar(GenTreeObj* obj);
GenTree* fgMorphCommutative(GenTreeOp* tree);

Expand Down
Loading

0 comments on commit a03a675

Please sign in to comment.