-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NativeAOT] Optimize multicast delegate thunk #104219
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Use RawCalli - Use Unsafe cast of invocation list These changes make the codegen of multicast delegate thunk to be more similar to CoreCLR w/ JIT.
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
Inspired by #104192 Baseline:
PR:
|
MichalStrehovsky
added a commit
to MichalStrehovsky/runtime
that referenced
this pull request
Jul 1, 2024
Alternative to dotnet#104219 for consideration. RyuJIT generates somewhat better code for the canonical `Invoke` pattern: The other PR: ``` 00007FF7AE041978 mov rcx,qword ptr [rbx+rbp*8+10h] 00007FF7AE04197D mov rax,qword ptr [rcx+8] 00007FF7AE041981 mov rdx,qword ptr [rcx+20h] 00007FF7AE041985 mov rcx,rax 00007FF7AE041988 call rdx ``` This PR: ``` 00007FF69D2B1978 mov rax,qword ptr [rbx+rbp*8+10h] 00007FF69D2B197D mov rcx,qword ptr [rax+8] 00007FF69D2B1981 call qword ptr [rax+20h] ```
This looks good too, but I have a slightly different proposal for consideration at #104222. |
Closing in favor of #104222. |
MichalStrehovsky
added a commit
that referenced
this pull request
Jul 3, 2024
Alternative to #104219 for consideration. RyuJIT generates somewhat better code for the canonical `Invoke` pattern: The other PR: ``` 00007FF7AE041978 mov rcx,qword ptr [rbx+rbp*8+10h] 00007FF7AE04197D mov rax,qword ptr [rcx+8] 00007FF7AE041981 mov rdx,qword ptr [rcx+20h] 00007FF7AE041985 mov rcx,rax 00007FF7AE041988 call rdx ``` This PR: ``` 00007FF69D2B1978 mov rax,qword ptr [rbx+rbp*8+10h] 00007FF69D2B197D mov rcx,qword ptr [rax+8] 00007FF69D2B1981 call qword ptr [rax+20h] ```
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes make the codegen of multicast delegate thunk to be more similar to CoreCLR w/ JIT.