Skip to content

Commit

Permalink
Merge pull request #7661 from VermaSh/disable_null_compaction
Browse files Browse the repository at this point in the history
Prevent null check compaction for dataAddr nodes
  • Loading branch information
vijaysun-omr authored Feb 15, 2025
2 parents 9953428 + e8c079e commit 01b9138
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/optimizer/LocalOpts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2142,6 +2142,9 @@ bool TR_CompactNullChecks::replacePassThroughIfPossible(TR::Node *currentNode, T
if (currentNode->getVisitCount() == initialVisitCount)
return false;

if (currentNode->isDataAddrPointer())
return false;

currentNode->setVisitCount(visitCount);

if (currentNode->isNopableInlineGuard())
Expand Down

0 comments on commit 01b9138

Please sign in to comment.