Skip to content

Commit

Permalink
Use helpers for implicit casts in importer (#78279)
Browse files Browse the repository at this point in the history
* Add JitDumpTreeIDs

* Use cast helpers in importer

* Work around regressions (sigh)

* Tune TP on x86

Will call this enough, 0.03% -> 0.015%.
  • Loading branch information
SingleAccretion authored Jan 5, 2023
1 parent 4de8288 commit 524045b
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 317 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -3690,7 +3690,7 @@ class Compiler

static void impBashVarAddrsToI(GenTree* tree1, GenTree* tree2 = nullptr);

GenTree* impImplicitIorI4Cast(GenTree* tree, var_types dstTyp);
GenTree* impImplicitIorI4Cast(GenTree* tree, var_types dstTyp, bool zeroExtend = false);

GenTree* impImplicitR4orR8Cast(GenTree* tree, var_types dstTyp);

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10370,7 +10370,7 @@ void Compiler::gtDispNode(GenTree* tree, IndentStack* indentStack, _In_ _In_opt_
}

/* Print the node ID */
printTreeID(tree);
printTreeID(JitConfig.JitDumpTreeIDs() ? tree : nullptr);
printf(" ");

if (tree->gtOper >= GT_COUNT)
Expand Down
Loading

0 comments on commit 524045b

Please sign in to comment.