Skip to content

Commit

Permalink
Update compiler.h
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo authored Oct 19, 2024
1 parent 8881648 commit 7d80b1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -9594,10 +9594,10 @@ class Compiler

if (type == UnrollKind::MemcmpU16)
{
// Don't depend on AVX here. String data typically 4b aligned, we don't want
// to use too many wide vectors - the penalty from crossing the cache-line boundary
// will be too big.
threshold = maxRegSize >= 16 ? 128 : 16;
threshold = maxRegSize * 2;
#ifdef TARGET_ARM64
threshold = maxRegSize * 6;
#endif
}

// For profiled memcmp/memmove we don't want to unroll too much as it's just a guess,
Expand Down

0 comments on commit 7d80b1b

Please sign in to comment.