Use GetArrayDataReference in Vector*#104532
Closed
xtqqczze wants to merge 1 commit intodotnet:mainfrom
Closed
Conversation
Member
|
What is the intention behind the change? It looks like the JIT is already able to eliminate the bounds check in this case. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics |
Contributor
Author
Member
|
This looks like a CQ issue for JIT. The semantic of the code doesn't change, with just less one register usage. |
Member
|
I opened #104538 about improving the addressing mode recognition on the JIT side. It's definitely a deficiency we have seen before. |
Contributor
Author
This was referenced Jul 8, 2024
Open
Contributor
Author
|
Bounds checks can be eliminated in some cases.
|
This was referenced Jul 10, 2024
750dadc to
8a10bfd
Compare
8a10bfd to
a900207
Compare
Contributor
Author
|
Updated PR with some eliminated bounds checks. |
Contributor
Author
|
@MihuBot -arm64 |
Contributor
Author
Contributor
Author
|
@MihuBot -arm64 |
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
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.
(System.Numerics.Vector`1[double]:.ctor(double[]):this)