This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JIT: modify box/unbox/isinst/castclass expansions for fast jitting (#…
…13188) When the jit is generating code in debug/minopts/rare-block modes, we'd prefer it to generate code more quickly and worry less about overall generated code performance. Generally speaking smaller intermediate and final code should correlate well with faster jitting. This change alters the expansions of box, unbox, isinst, and castclass when generating code for minopts, debug, or in rarely run blocks. In such modes the jit estimates whether an inline sequence or general helper call would result in more compact code, and then chooses the smaller sequence. This reduces generated code size around 2.5% in a variety of scenarios, and roughly translates to a 1.5% improvement in time spent jitting. Similar strategies can be applied to other complex operations during importation. That work is forthcoming.
- Loading branch information
1 parent
55d5047
commit 47b38da
Showing
3 changed files
with
149 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters