Skip to content

Commit

Permalink
Merge pull request #16850 from bhavanisn/backport-arrayletCRC32C-to-0.38
Browse files Browse the repository at this point in the history
(0.38) Disable CRC32C optimization when arraylets are enabled on Power
  • Loading branch information
pshipton committed Mar 21, 2023
2 parents 9cc3de2 + 9fb4c31 commit 6f5f264
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/compiler/p/codegen/PPCPrivateLinkage.cpp
Expand Up @@ -2891,7 +2891,8 @@ TR::Register *J9::Power::PrivateLinkage::buildDirectDispatch(TR::Node *callNode)
}
}

if (comp()->target().cpu.isAtLeast(OMR_PROCESSOR_PPC_P8) &&
if (!comp()->requiresSpineChecks() &&
comp()->target().cpu.isAtLeast(OMR_PROCESSOR_PPC_P8) &&
comp()->target().cpu.supportsFeature(OMR_FEATURE_PPC_HAS_VSX) &&
(callNode->getSymbol()->castToMethodSymbol()->getRecognizedMethod() == TR::java_util_zip_CRC32C_updateBytes ||
callNode->getSymbol()->castToMethodSymbol()->getRecognizedMethod() == TR::java_util_zip_CRC32C_updateDirectByteBuffer)) {
Expand Down

0 comments on commit 6f5f264

Please sign in to comment.