Skip to content

JIT: consider phase to clean up mixed byref/native int uses #12122

Open
@AndyAyersMS

Description

@AndyAyersMS

There are a number of examples of cases now where the jit has difficulty with mixed byref/native int uses of some resource. These come about from pointer reinterpretation methods like Unsafe.AsRef and other places.

Some examples: #10821, #11492

The idea here is to run a phase after inlining to build a globally consistent view of the type of a local, possibly introducing casts where appropriate (like morph's "cast out of gc") so that later phases can reason about type correctness in a strictly local fashion.

category:implementation
theme:ir
skill-level:expert
cost:large

Metadata

Metadata

Assignees

No one assigned

    Labels

    JitUntriagedCLR JIT issues needing additional triagearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions