Skip to content

Commit

Permalink
Merge pull request #7217 from hzongaro/avoid-commoning-l2a
Browse files Browse the repository at this point in the history
Prevent commoning of l2a operations in localCSE
  • Loading branch information
vijaysun-omr authored Jan 7, 2024
2 parents 3a47874 + 782146b commit 714d51c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/optimizer/OMRLocalCSE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,9 @@ bool OMR::LocalCSE::canBeAvailable(TR::Node *parent, TR::Node *node, TR_BitVecto
if (node->getOpCodeValue() == TR::allocationFence)
return false;

if (node->getOpCodeValue() == TR::l2a)
return false;

if (node->getOpCode().isLoadReg() || node->getOpCode().isStoreReg() || (node->getOpCodeValue() == TR::PassThrough && parent->getOpCodeValue() != TR::GlRegDeps) || (node->getOpCodeValue() == TR::GlRegDeps))
return false;

Expand Down

0 comments on commit 714d51c

Please sign in to comment.