Skip to content

Use stelm.ref helper calls towards array bounds check assertions and range check elimination #8096

@erozenfeld

Description

@erozenfeld

In case of generic arrays instantiated over obj-ref, store to array takes place using stelem.ref helper (CORINFO_HELP_ARRADDR_ST). This helper call performs both a null check and array bounds check before assigning the value using a write barrier. Right now neither assertion prop nor range check make use of stelm.ref helper calls to eliminate redundant bounds checks.

category:cq
theme:bounds-checks
skill-level:expert
cost:medium
impact:medium

Metadata

Metadata

Assignees

No one assigned

    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/additionsoptimizationtenet-performancePerformance related issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions