Skip to content

Commit

Permalink
Merge pull request #7495 from gita-omr/known_aload
Browse files Browse the repository at this point in the history
Propagate known object info to aload node
  • Loading branch information
vijaysun-omr authored Oct 22, 2024
2 parents ce4fde5 + 5113516 commit 15631c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compiler/optimizer/VPHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,14 @@ static bool findConstant(OMR::ValuePropagation *vp, TR::Node *node)
}
}
}
else if (node->getOpCode().isLoadDirect() &&
!node->hasKnownObjectIndex() &&
!node->getSymbolReference()->hasKnownObjectIndex() &&
node->getSymbolReference()->getSymbol()->isAutoOrParm())
{
if (performTransformation(vp->comp(), "%sSetting known-object obj%d on node [%p]\n", OPT_DETAILS, knownObject->getIndex(), node))
node->setKnownObjectIndex(knownObject->getIndex());
}
}
}
break;
Expand Down

0 comments on commit 15631c5

Please sign in to comment.