Skip to content

Commit

Permalink
Disable local CSE for offheap
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Verma <shubhamv.sv@gmail.com>
  • Loading branch information
VermaSh authored and rmnattas committed Jun 11, 2024
1 parent 3a218f2 commit 8efb420
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions compiler/optimizer/LocalAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ bool TR_LocalAnalysis::isSupportedNodeForFunctionality(TR::Node *node, TR::Compi
node->getSymbolReference()->isUnresolved()))
return false;

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

if (isSupportedOpCode(node->getOpCode(), comp) || isSupportedStoreNode || node->getOpCode().isLoadConst())
{
if (node->getDataType() == TR::Address)
Expand Down
2 changes: 1 addition & 1 deletion compiler/optimizer/OMRLocalCSE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ bool OMR::LocalCSE::shouldCopyPropagateNode(TR::Node *parent, TR::Node *node, in

bool OMR::LocalCSE::shouldCommonNode(TR::Node *parent, TR::Node *node)
{
return isTreetopSafeToCommon();
return !node->isDataAddrPointer() && isTreetopSafeToCommon();
}

TR::Node * getRHSOfStoreDefNode(TR::Node * storeNode)
Expand Down

0 comments on commit 8efb420

Please sign in to comment.