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 SIMD for block inits with GC fields#102132

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
EgorBo merged 5 commits intodotnet:mainfromEgorBo:simd-blk-gc-init
May 15, 2024
Merged
Changes from1 commit
Commits
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
Update codegenxarch.cpp
  • Loading branch information
@EgorBo
EgorBo authoredMay 12, 2024
commit5c075504ed56d4f26d98a6a498b64abfb878f293
7 changes: 3 additions & 4 deletionssrc/coreclr/jit/codegenxarch.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3311,13 +3311,12 @@ void CodeGen::genCodeForInitBlkUnroll(GenTreeBlk* node)
unsigned simdSize = compiler->roundDownSIMDSize((nonGcSlotCount - nonGcSlot) * REGSIZE_BYTES);
if (simdSize > 0)
{
// Initialize simdZeroReg with zero on demand, it's enough to use TYP_SIMD16
// regardless of the SIMD size we're going to use.
// Initialize simdZeroReg with zero on demand
if (simdZeroReg == REG_NA)
{
simdZeroReg = internalRegisters.GetSingle(node, RBM_ALLFLOAT);
simd_t vecCon;
memset(&vecCon, (uint8_t)src->AsIntCon()->IconValue(), sizeof(simd_t));
// SIMD16 is sufficient for any SIMD size
simd_tvecCon = {};
genSetRegToConst(simdZeroReg, TYP_SIMD16, &vecCon);
}

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp