Skip to content

Commit

Permalink
Recognize the rdbar op code in NullChk evaluator (#4100)
Browse files Browse the repository at this point in the history
Recognize the rdbar op code in NullChk evaluator
  • Loading branch information
fjeremic committed Jul 4, 2019
2 parents 6dc0df4 + af7af89 commit 8a77e0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/z/codegen/ControlFlowEvaluator.cpp
Expand Up @@ -2275,7 +2275,8 @@ TR::Register *OMR::Z::TreeEvaluator::evaluateNULLCHKWithPossibleResolve(TR::Node
reference->setIsNonNull(true);
n = reference->getFirstChild();
TR::ILOpCodes loadOp = comp->il.opCodeForIndirectLoad(TR::Int32);
while (n->getOpCodeValue() != loadOp)
TR::ILOpCodes rdbarOp = comp->il.opCodeForIndirectReadBarrier(TR::Int32);
while (n->getOpCodeValue() != loadOp && n->getOpCodeValue() != rdbarOp)
{
n->setIsNonZero(true);
n = n->getFirstChild();
Expand Down

0 comments on commit 8a77e0c

Please sign in to comment.