diff --git a/compiler/optimizer/OMRLocalCSE.cpp b/compiler/optimizer/OMRLocalCSE.cpp index 0ad59ece335..53c977e75dd 100644 --- a/compiler/optimizer/OMRLocalCSE.cpp +++ b/compiler/optimizer/OMRLocalCSE.cpp @@ -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))