Skip to content

Commit

Permalink
Prevent redundant call transformation
Browse files Browse the repository at this point in the history
Redundant getComponentType() transformation was observed in value propagation optimization.
Adding condition to perform this transformation only in last time through run.

Signed-off-by: Ehsan Kiani Far <[email protected]>
  • Loading branch information
ehsankianifar committed Jan 16, 2025
1 parent 55155f7 commit eb013df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/compiler/optimizer/J9ValuePropagation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1768,6 +1768,9 @@ J9::ValuePropagation::constrainRecognizedMethod(TR::Node *node)
}
case TR::java_lang_Class_getComponentType:
{
if (!lastTimeThrough())
return;

TR::Node *classChild = node->getLastChild();
bool classChildGlobal;
TR::VPConstraint *classChildConstraint = getConstraint(classChild, classChildGlobal);
Expand Down

0 comments on commit eb013df

Please sign in to comment.