Loop Cloning is disabled on Arrays of Structs #54846
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
needs-further-triage
Issue has been initially triaged, but needs deeper consideration or reconsideration
tenet-performance
Performance related issue
Milestone
Tested on .NET 5
Loop Cloning is disabled on structs of arrays making it somewhat not ideal for performance scenarios:
https://sharplab.io/#v2:EYLgxg9gTgpgtADwGwBYA0AXEBDAzgWwB8ABAJgEYBYAKGIAYACY8gOgCUBXAOwwEt8YLAJI8YUCAAcAymIBuvMDFwBuGjWIBmBrgxQOYDAyk0A3jQYWmW3jwYANZZYs0AvmtpayDACpLDZ6idNJhQGAFkACikAbQBdBmwASgYApycAM2gIm0NeBgBeBjpHPIAeBnI6KpKAahrk1LSm7GjeWJY7AoZeVUCmhjc+i0GXIA===
The code in question that disables loop cloning is here and it's still on master so it will also affect .NET 6:
https://github.com/dotnet/runtime/blob/main/src/coreclr/jit/loopcloning.cpp#L2060
Code:
X86:
The text was updated successfully, but these errors were encountered: