Skip to content

Commit

Permalink
Merge pull request #192 from hzongaro/avoid-commoning-l2a-0.42
Browse files Browse the repository at this point in the history
[0.42.0] Prevent commoning of l2a operations in localCSE
  • Loading branch information
pshipton authored Jan 8, 2024
2 parents 494d6eb + a52b6de commit 11700e6
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 11700e6

Please sign in to comment.