CoreCLR generates suboptimal codegen with structs passed via multiple registers #89374
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
tenet-performance
Performance related issue
Milestone
Description
As noted in #55357 (comment), on systems using SysV ABI when structs are passed via multiple registers instead of using the stack, CoreCLR isn't fully able to reason about such usage and spills the struct to stack in some cases.
Code:
Current codegen:
Expected codegen:
Configuration
Any SysV ABI OS (Linux, MacOS)
Current
main
branch.The text was updated successfully, but these errors were encountered: