Skip to content

JIT: avoid store covariance check for ref-type ldelem from same array #9159

@AndyAyersMS

Description

@AndyAyersMS

The jit optimizes stelem.ref to avoid the store covariance check when the value being stored is from the same array (at least for obvious cases like a[i] = a[j]) or the value being stored is null.

But it doesn't do the same for stelem with a ref type. Looks like it easily could.

category:cq
theme:optimization
skill-level:expert
cost:small

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIenhancementProduct code improvement that does NOT require public API changes/additionsin-prThere is an active PR which will close this issue when it is mergedoptimizationtenet-performancePerformance related issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions