Skip to content

Commit

Permalink
Merge pull request #193 from hzongaro/avoid-commoning-l2a-0.43
Browse files Browse the repository at this point in the history
[0.43.0] Prevent commoning of l2a operations in localCSE
  • Loading branch information
pshipton authored Jan 9, 2024
2 parents c293fa2 + 6c319b4 commit 2dfe70d
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 2dfe70d

Please sign in to comment.