Skip to content

Commit

Permalink
Implement "fgSetTreeSeq" via "GenTreeVisitor"
Browse files Browse the repository at this point in the history
Lets one more custom traversal go.

Also results in some ~0.17% fewer instructions executed according to PIN.
  • Loading branch information
SingleAccretion committed Apr 22, 2022
1 parent 479bdc4 commit 47310fb
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 336 deletions.
9 changes: 1 addition & 8 deletions src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -5501,14 +5501,7 @@ class Compiler
#endif

//-------- Determine the order in which the trees will be evaluated -------

unsigned fgTreeSeqNum;
GenTree* fgTreeSeqLst;
GenTree* fgTreeSeqBeg;

GenTree* fgSetTreeSeq(GenTree* tree, GenTree* prev = nullptr, bool isLIR = false);
void fgSetTreeSeqHelper(GenTree* tree, bool isLIR);
void fgSetTreeSeqFinish(GenTree* tree, bool isLIR);
GenTree* fgSetTreeSeq(GenTree* tree, bool isLIR = false);
void fgSetStmtSeq(Statement* stmt);
void fgSetBlockOrder(BasicBlock* block);

Expand Down
Loading

0 comments on commit 47310fb

Please sign in to comment.