Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use runtime helperCreateSpan forstackalloc of non-byte arrays#71261

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jjonescz merged 18 commits intodotnet:mainfromjjonescz:69325-stackalloc-NonByte
Jan 11, 2024
Merged
Changes from1 commit
Commits
Show all changes
18 commits
Select commitHold shift + click to select a range
b452022
Optimize non-byte stackalloc scenarios
jjonesczDec 14, 2023
7407247
Inline a variable
jjonesczDec 18, 2023
4375e44
Inline a method
jjonesczDec 18, 2023
b262c1c
Use Binder helper to get well-known member
jjonesczDec 18, 2023
23ff1d9
Visit everything in local rewriter
jjonesczDec 18, 2023
e60c214
Clarify comment
jjonesczDec 18, 2023
bf48b4b
Test non-blittable type
jjonesczDec 18, 2023
020f8b4
Fix nullability
jjonesczDec 18, 2023
bacc7e0
Revert part that skips stack allocation
jjonesczDec 20, 2023
750dfb7
Align the data field
jjonesczDec 20, 2023
1dd6d14
Test zero elements
jjonesczDec 20, 2023
a3678b8
Use indexer instead of `GetPinnableReference`
jjonesczDec 21, 2023
f337c1f
Reuse `IsTypeAllowedInBlobWrapper`
jjonesczDec 21, 2023
5372ee1
Emit `unaligned.` prefix
jjonesczJan 8, 2024
83f37e7
Test 2-byte primitive
jjonesczJan 9, 2024
ae76846
Align to 8 bytes and omit `unaligned.` IL
jjonesczJan 11, 2024
14d9740
Revert "Align to 8 bytes and omit `unaligned.` IL"
jjonesczJan 11, 2024
3cd394b
Merge branch 'main' into 69325-stackalloc-NonByte
jjonesczJan 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
ReuseIsTypeAllowedInBlobWrapper
  • Loading branch information
@jjonescz
jjonescz committedDec 21, 2023
commitf337c1f85bae23b4f3b7af169b9cfa544dfaad7d
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -130,7 +130,7 @@ private ArrayInitializerStyle ShouldEmitBlockInitializerForStackAlloc(TypeSymbol
return ArrayInitializerStyle.Element;
}

if (elementType.EnumUnderlyingTypeOrSelf().SpecialType.IsBlittable())
if (IsTypeAllowedInBlobWrapper(elementType.EnumUnderlyingTypeOrSelf().SpecialType))
{
int initCount = 0;
int constCount = 0;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp