Skip to content

Commit

Permalink
Merge pull request #7218 from hzongaro/avoid-commoning-conversion-to-…
Browse files Browse the repository at this point in the history
…address

Prevent commoning conversion to address operations in LocalCSE
  • Loading branch information
vijaysun-omr authored Jan 8, 2024
2 parents 714d51c + 8f4b357 commit e2e3a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/optimizer/OMRLocalCSE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ bool OMR::LocalCSE::canBeAvailable(TR::Node *parent, TR::Node *node, TR_BitVecto
if (node->getOpCodeValue() == TR::allocationFence)
return false;

if (node->getOpCodeValue() == TR::l2a)
if (node->getOpCode().isConversion() && node->getOpCode().isRef())
return false;

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

0 comments on commit e2e3a00

Please sign in to comment.