-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Description
Generic casts such as the following pattern result in a redundant cast helper call:
runtime/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Dictionary.cs
Lines 117 to 119 in a693af3
if (enumerable.GetType() == typeof(Dictionary<TKey, TValue>)) | |
{ | |
Dictionary<TKey, TValue> source = (Dictionary<TKey, TValue>)enumerable; |
This necessitates using Unsafe.As
for optimal codegen.
Diffs: MihuBot/runtime-utils#1382
Related: #118684
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI