You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[RyuJIT][LSRA] Take register encoding sizes into account #7996
Consider preferring smaller encoding sizes for high ref count, and larger encoding sizes for small ref count.
(This issue was migrated from the desktop bug tracking system.)
category:cq
theme:register-allocator
skill-level:expert
cost:medium
Here LSRA was too eager to move to r8 (presumably selected due to ABI requirements). If the move to r8 was delayed until the actual call the code would have been 4 bytes smaller.
Activity
mikedn commentedon Jan 29, 2018
A related example I happened to stumble upon:
generates:
Here LSRA was too eager to move to
r8(presumably selected due to ABI requirements). If the move tor8was delayed until the actual call the code would have been 4 bytes smaller.kunalspathak commentedon Apr 9, 2021
I do not think we will have time to do this in .NET 6.
kunalspathak commentedon Sep 23, 2023
Fixed by #88151
kunalspathak commentedon Sep 23, 2023
Latest assembly code for the example in #7996 (comment):