Skip to content

JIT: clean up unused throw helpers #93948

@AndyAyersMS

Description

@AndyAyersMS

#93371 deferred creation of shared throw helper blocks, but introduced more cases where throw helper blocks end up not being needed.

There's a divergence between the point that the JIT "demands" the creation of a helper (via fgAddCodeRef) and requests the helper block, and in between the JIT may optimize away the code that needed the helper.

So the fix here is either to defer or reaffirm the demands, so that they better reflect actual needs, or else allow unused helper blocks to be removed later on.

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions