Skip to content

Commit 03e3d37

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 9229e51 commit 03e3d37

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
@@ -3513,11 +3513,11 @@ TR_J9VMBase::lowerMultiANewArray(TR::Compilation * comp, TR::Node * root, TR::Tr
35133513
root->setNumChildren(3);
35143514

35153515
static bool recreateRoot = feGetEnv("TR_LowerMultiANewArrayRecreateRoot") ? true : false;
3516-
#if defined(TR_HOST_POWER)
3516+
#if defined(TR_HOST_POWER) || defined(TR_HOST_S390)
35173517
if (!comp->target().is64Bit() || recreateRoot || dims > 2)
35183518
#else
35193519
if (!comp->target().is64Bit() || recreateRoot || dims > 2 || secondDimConstNonZero)
3520-
#endif /* defined(TR_HOST_POWER) */
3520+
#endif /* defined(TR_HOST_POWER) || defined(TR_HOST_S390) */
35213521
TR::Node::recreate(root, TR::acall);
35223522

35233523
return treeTop;

0 commit comments

Comments
 (0)