Skip to content

Commit c920ac3

Browse files
authored
Merge pull request eclipse-omr#7670 from knn-k/zArraySetDiscontiguous
Z: Disable arrayset opt when arraylets are enabled
2 parents 3feefaf + f8a0ca1 commit c920ac3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

compiler/z/codegen/OMRCodeGenerator.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,24 +591,28 @@ OMR::Z::CodeGenerator::initialize()
591591
{
592592
cg->setSupportsVirtualGuardNOPing();
593593
}
594-
if (!comp->getOption(TR_DisableArraySetOpts))
595-
{
596-
cg->setSupportsArraySet();
597-
}
594+
598595
if (!TR::Compiler->om.canGenerateArraylets())
599596
{
597+
if (!comp->getOption(TR_DisableArraySetOpts))
598+
{
599+
cg->setSupportsArraySet();
600+
}
601+
600602
static const bool disableArrayCmp = feGetEnv("TR_DisableArrayCmp") != NULL;
601603
if (!disableArrayCmp)
602604
{
603605
cg->setSupportsArrayCmp();
604606
cg->setSupportsArrayCmpSign();
605607
}
608+
606609
static const bool disableArrayCmpLen = feGetEnv("TR_DisableArrayCmpLen") != NULL;
607610
if (!disableArrayCmpLen)
608611
{
609612
cg->setSupportsArrayCmpLen();
610613
}
611614
}
615+
612616
if (!comp->compileRelocatableCode())
613617
{
614618
cg->setSupportsArrayTranslateTRxx();

0 commit comments

Comments
 (0)