forked from dotnet/runtime
-
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: optimize more array covariant store checks in the importer (dotn…
…et#189) The importer was already optimizing away some array covariant store checks, for cases where the value being stored was null, or the value being stored came from the same array. Change this to only optimize array covariant store checks in the importer when optimization is enabled. For minopts, invoking the store helper produces smaller code. Update `gtGetClassHandle` to obtain the array handle from array newobjs, and use this to also optimize cases where the destination array is exactly `object[]` or is `T[]` where `T` is final and not itself subject to special casting logic. In particular this gets the common case where `T` is `string`. Closes dotnet/coreclr#6537.
- Loading branch information
1 parent
53b64e8
commit 05aadb8
Showing
4 changed files
with
156 additions
and
52 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