A simple method that performs unboxing is considered unprofitable inlinee, preventing box stack allocation #104479
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
in-pr
There is an active PR which will close this issue when it is merged
tenet-performance
Performance related issue
Milestone
Description
Given the following code:
It appears that
Unbox(object)
method is considered an unprofitable inlinee, leading to the following codegen:If we annotate
Unbox
withAggressiveInlining
, it gets inlined with allocation being elided as expected:Data
PHASE Morph - Inlining
Configuration
Windows 11, x64, runtime commit ebf21a4
Regression?
No
The text was updated successfully, but these errors were encountered: