NativeAOT delegate creation helper call blocks Escape Analysis #110847
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
tenet-performance
Performance related issue
untriaged
New issue has not been triaged by the area owner
Description
While working on #109679 I've noticed that NativeAOT is unable to stack allocate delegate instances since it emits a call to a helper for the constructor which marks the variable as escaped.
cc @AndyAyersMS what would be the preferred solution for you here?
Configuration
n/a
Regression?
No.
Data
NativeAOT:
CoreCLR:
Analysis
The helper could either be special cased for escape analysis, NativeAOT could be migrated to work similar to CoreCLR or we could get a JIT intrinsic directly setting the delegate fields for known cases.
The text was updated successfully, but these errors were encountered: