Skip to content

Commit dadf5db

Browse files
authored
Merge pull request #20701 from a7ehuo/system-arraycopy-revert-PR20525
Revert "Merge pull request #20525"
2 parents 735ab88 + 91686cd commit dadf5db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/compiler/x/codegen/J9TreeEvaluator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,10 +1897,10 @@ TR::Register *J9::X86::TreeEvaluator::arraycopyEvaluator(TR::Node *node, TR::Cod
18971897
comp->target().cpu.supportsAVX() &&
18981898
comp->target().is64Bit();
18991899

1900-
int32_t repMovsThresholdBytes = comp->target().cpu.supportsFeature(OMR_FEATURE_X86_AVX512F) ? 128 : 64;
1900+
int32_t repMovsThresholdBytes = 32;
19011901
int32_t newThreshold = comp->getOptions()->getArraycopyRepMovsReferenceArrayThreshold();
19021902

1903-
if ((newThreshold == 32) || (newThreshold == 64) || (newThreshold == 128))
1903+
if ((repMovsThresholdBytes < newThreshold) && ((newThreshold == 64) || (newThreshold == 128)))
19041904
{
19051905
// If the CPU doesn't support AVX512, reduce the threshold to 64 bytes
19061906
repMovsThresholdBytes = ((newThreshold == 128) && !comp->target().cpu.supportsFeature(OMR_FEATURE_X86_AVX512F)) ? 64 : newThreshold;

0 commit comments

Comments
 (0)