-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mono][interp] Super instruction tweaks (#99319)
* [mono][interp] Remove most of hardcoded LDC instructions They have little benefit. Also fix oversight which resulted in using MINT_LDC_I4_S only for byte sized integers. * [mono][interp] Refactor fetching of immediate value for superinstructions Make `get_sreg_imm` more flexible, by returning the immediate value and the mint type that this value can fit in. Simplify return immediate handling by also applying conversion to immediate value, if necessary. * [mono][interp] Avoid running super instruction pass more than once We will avoid running it if we know will do another iteration later (especially useful when first iteration is ssa disabled). It can still happen for it to run multiple times (when bblock optimization requests retry), but this should be very rare. This will save compilation time and should also remove the necessity of handling super instructions in constant folding pass. Reverts #99055 since it is no longer necessary. * [mono][interp] Add a few super instructions with 32 bit immediates Also add instructions for and/or + immediates. * [mono][interp] Fix MINT_SHL_AND_ generation and + ldc will already be transformed to a superinstruction, so this can also be simplified. * Implement new superinsns in jiterpreter * [mono][interp] Add explicit cast for clarity --------- Co-authored-by: Katelyn Gadd <[email protected]> Co-authored-by: Larry Ewing <[email protected]>
- Loading branch information
1 parent
b0f6444
commit d88ed80
Showing
8 changed files
with
192 additions
and
184 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
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
Oops, something went wrong.