Skip to content

Commit

Permalink
Merge pull request #7024 from dylanjtuttle/guardIsNodeCreatedByPRE
Browse files Browse the repository at this point in the history
Guard isNodeCreatedByPRE() with canChkNodeCreatedByPRE()
  • Loading branch information
hzongaro authored Jun 7, 2023
2 parents ae7bf1a + 46ae837 commit 8cdf471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/optimizer/LoopVersioner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3444,7 +3444,7 @@ void TR_LoopVersioner::updateDefinitionsAndCollectProfiledExprs(TR::Node *parent
if ((valueInfo->getTopProbability() > MIN_PROFILED_FREQUENCY) &&
(valueInfo->getTotalFrequency() > 0) &&
!_containsCall &&
!node->getByteCodeInfo().doNotProfile() && !node->isNodeCreatedByPRE() &&
!node->getByteCodeInfo().doNotProfile() && node->canChkNodeCreatedByPRE() && !node->isNodeCreatedByPRE() &&
// Only collect nodes from unspecialized blocks to avoid specializing the same nodes twice
!block->isSpecialized())
{
Expand Down

0 comments on commit 8cdf471

Please sign in to comment.