-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Intrinsicify SequenceCompareTo(char) #22876
Conversation
@dotnet-bot test Windows_NT x64 Checked jitx86hwintrinsicnoavx @dotnet-bot test Windows_NT x86 Checked jitx86hwintrinsicnoavx @dotnet-bot test Ubuntu x64 Checked jitx86hwintrinsicnoavx |
Perf numbers, best and worst cases? |
Going to wait to review this until after #22816. It looks to be many of the comments are going to be the same overall. |
Will follow up after #22505 |
@benaadams, what's your plan for this series of PRs? Should they be closed for now? |
Still planning on them; some urgency was lost when 3.0 moved to tell mode |
Thanks. Do you plan to get to them in the next week and a half? |
Thank you for your contribution. As announced in dotnet/coreclr#27549 this repository will be moving to dotnet/runtime on November 13. If you would like to continue working on this PR after this date, the easiest way to move the change to dotnet/runtime is:
|
005c990
to
b0686c5
Compare
b0686c5
to
f24e9d6
Compare
Rebased ready for review /cc @tannergooding @CarolEidt @GrabYourPitchforks |
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.
LGTM but I'd suggest additional comments
{ | ||
if (Vector.IsHardwareAccelerated && (byte*)minLength >= (byte*)Vector<ushort>.Count) | ||
if (lengthToExamine >= Vector256<ushort>.Count) |
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.
IMO this could use some additional comments to explain how this handles non-multiples of vector size (i.e. that the last compare may overlap the previous, but it's still correct).
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.
Added. Realized I could delete the additional Sse2 block in the Avx2 when adding the comment as it can fall through to the existing Sse2 one.
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.
Excellent!
Thank you for your contribution. As announced in #27549 the dotnet/runtime repository will be used going forward for changes to this code base. Closing this PR as no more changes will be accepted into master for this repository. If you’d like to continue working on this change please move it to dotnet/runtime. |
From #22187
Based on #22875 which is first commit
Resolves https://github.com/dotnet/coreclr/issues/22763