-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 SuperPMIoptimization
Milestone
Description
When the jit is optimizing type equality and inequality tests, it may run into the following case:
object.GetType() == typeof(X)
This can usually be optimized into a comparison of the object's method table pointer versus a known method table address. But historically that has not always been a valid optimization. So the jit calls canInlineTypeCheckWithObjectVTable to identify the cases where the optimization is valid.
Per Jan's comments in #10332, it seems in CoreCLR this optimization is likely always valid and the check is no longer needed.
category:cq
theme:basic-cq
skill-level:intermediate
cost:small
HFadeel
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 SuperPMIoptimization