Skip to content

Commit 50f14ea

Browse files
committed
Z: Enable 2D array inlining with non-zero constant second dimension
Previously, inlining of constant 2D arrays with a non-zero second dimension was disabled on z due to limitations in handling such cases. However, recent improvements have resolved those issues, making it safe and beneficial to inline these arrays. Remove the constraint that prevented inlining of non-zero constant second dimension 2D arrays. signed-off-by: Ehsan Kiani Far <ehsan.kianifar@gmail.com>
1 parent fa536c3 commit 50f14ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/compiler/env/VMJ9.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3423,11 +3423,11 @@ TR_J9VMBase::lowerMultiANewArray(TR::Compilation * comp, TR::Node * root, TR::Tr
34233423
root->setNumChildren(3);
34243424

34253425
static bool recreateRoot = feGetEnv("TR_LowerMultiANewArrayRecreateRoot") ? true : false;
3426-
#if defined(TR_HOST_POWER)
3426+
#if defined(TR_HOST_POWER) || defined(TR_HOST_S390)
34273427
if (!comp->target().is64Bit() || recreateRoot || dims > 2)
34283428
#else
34293429
if (!comp->target().is64Bit() || recreateRoot || dims > 2 || secondDimConstNonZero)
3430-
#endif /* defined(TR_HOST_POWER) */
3430+
#endif /* defined(TR_HOST_POWER) || defined(TR_HOST_S390) */
34313431
TR::Node::recreate(root, TR::acall);
34323432

34333433
return treeTop;

0 commit comments

Comments
 (0)