RyuJIT: Allow promotions of structs with fields of struct containing a single primitive field. #7441
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
enhancement
Product code improvement that does NOT require public API changes/additions
optimization
tenet-performance
Performance related issue
Milestone
Right now the existing implementation allows only structs with pointer sized fields. This would mean int/uint/ref/byref on 32-bit and long/ulong/ref/byref on 64-bit. We should be able to permit promotion of a following struct on 64-bit, for example
struct Foo { struct Bar { int a }, int b}
Similarly the following struct both on 32-bit and 64-bit targets
struct Foo { struct Bar { short a }, short b, int c }
category:cq
theme:structs
skill-level:expert
cost:medium
The text was updated successfully, but these errors were encountered: