-
Notifications
You must be signed in to change notification settings - Fork 5k
Remove mono specific SpanHelpers #78015
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
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d946c3b
Revert "[Mono] Restore old code to solve the recent SpanHelpers regre…
BrzVlad 3b73bb5
[System.Span] Optimize hot loops by simplifying offset computation
BrzVlad a48fb6f
[System.Span] Refactor hot loop code
BrzVlad fe06a72
[mono][interp] Replace compare + brfalse/brtrue with single condition…
BrzVlad ff36071
[mono][interp] Dump in/out links for bblocks during verbose logging
BrzVlad fb2bcde
[mono][interp] Improve detection of dead bblocks
BrzVlad 5379908
[mono][interp] Reorder bblocks to facilitate propagation of values
BrzVlad c8edcde
[mono][interp] Don't optimize out bblocks that are tiering patchpoint…
BrzVlad cffdc02
[mono][interp] Make bblock reordering more conservative
BrzVlad 5e8571f
[mono][interp] Add basic removal of unused defines
BrzVlad e4abb67
[mono][interp] Clear unused defines of local only vars
BrzVlad 954483a
[mono][interp] Propagate target branches
BrzVlad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these changes actually help? On coreclr at least it's not clear to me just from the diff that it's a net win.
https://www.diffchecker.com/du4Cevvb
Can you share throughput numbers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There shouldn't be any improvement on coreclr. I wouldn't be surprised if the generated code is more or less identical, since the JIT might make use of common subexpression elimination optimization. Also the code paths tweaked in this PR are for non vectorized cases, which are mostly not hit at all with coreclr.
The BCL change is intended for less optimized compilers to be able to generate good quality code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm more concerned it might regress. At least according to the diff I linked above, the new asm is a bit longer and appears to use a different addressing mode. I don't have a good sense for what that might mean in terms of throughput.
Aren't they used for shorter inputs that don't have enough data to fill a vector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The local perf numbers on some benchmarks are unclear, I'm waiting for a full performance run.