Skip to content

Commit

Permalink
Merge pull request #14571 from mpirvu/xagg
Browse files Browse the repository at this point in the history
Simplify -Xaggressive code
  • Loading branch information
vijaysun-omr authored Feb 22, 2022
2 parents e21d943 + 3e8aa20 commit a245e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/compiler/optimizer/J9TransformUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ bool J9::TransformUtil::foldFinalFieldsIn(TR_OpaqueClassBlock *clazz, const char
return false;

static char *enableJCLFolding = feGetEnv("TR_EnableJCLStaticFinalFieldFolding");
if ((enableJCLFolding || comp->getOption(TR_AggressiveOpts))
if (enableJCLFolding
&& isStatic
&& comp->fej9()->isClassLibraryClass(clazz)
&& comp->fej9()->isClassInitialized(clazz))
Expand Down

0 comments on commit a245e34

Please sign in to comment.