ARM64: Fix the alignment for Vector64 to 8 bytes#37649
Merged
kunalspathak merged 1 commit intodotnet:masterfrom Jun 9, 2020
Merged
ARM64: Fix the alignment for Vector64 to 8 bytes#37649kunalspathak merged 1 commit intodotnet:masterfrom
kunalspathak merged 1 commit intodotnet:masterfrom
Conversation
| return 16; | ||
| // preferred alignment for 64-bit vectors is 8-bytes. | ||
| // For everything else, 16-bytes. | ||
| return (size == 8) ? 8 : 16; |
Member
There was a problem hiding this comment.
For reference, the actual alignment of the ABI types is here: https://github.com/dotnet/runtime/blob/master/src/coreclr/src/vm/methodtablebuilder.cpp#L9541-L9580
We can't necessarily get this info from the VM because Vector2/Vector3/Vector4, and Vector<T> aren't classified as the ABI types, but we still align them as such if they are on the stack.
Contributor
Author
|
@CarolEidt , @dotnet/jit-contrib |
tannergooding
approved these changes
Jun 9, 2020
Member
tannergooding
left a comment
There was a problem hiding this comment.
Looks correct to me and matches what I read from the ABI specs.
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.
Fix the alignment for
Vector64on ARM64 to be 8-bytes instead of 16-bytes.Before, we were creating the following:
Now, we don't allocate lot of stack space:
Fixes: #37429