forked from dotnet/coreclr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JIT: improve type equality opts for generic and prejitted code (dotne…
…t#14381) Handle cases where a `GetType()` call on a generically typed object feeds into a type equality comparison. These calls have constraint prefixes. For value classes the constraint tells us the type and so we can avoid the box and call and just construct that type directly. For ref classes the type test can usually reduce to a method table comparison. Also, handle cases that arise in prejiited code better, by generalizing how the jit looks for class handles from type construction trees. Added test cases. Closes #14304.
- Loading branch information
1 parent
8ec9b34
commit be3715c
Showing
5 changed files
with
397 additions
and
121 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
Oops, something went wrong.