diff --git a/runtime/compiler/optimizer/J9Simplifier.cpp b/runtime/compiler/optimizer/J9Simplifier.cpp index 9a7399b7c0e..adad134e2a7 100644 --- a/runtime/compiler/optimizer/J9Simplifier.cpp +++ b/runtime/compiler/optimizer/J9Simplifier.cpp @@ -362,9 +362,11 @@ J9::Simplifier::simplifylCallMethods(TR::Node * node, TR::Block * block) // // to: // +// +// lcall currentTimeMaxPrecision // // ldiv -// lcall currentTimeMaxPrecision +// ==>lcall currentTimeMaxPrecision // lconst TR::Node *J9::Simplifier::convertCurrentTimeMillis(TR::Node * node, TR::Block * block) { @@ -386,6 +388,7 @@ TR::Node *J9::Simplifier::convertCurrentTimeMillis(TR::Node * node, TR::Block * divConstNode->setLongInt(OMRPORT_TIME_HIRES_MILLITIME_DIVISOR); TR::Node::recreate(node, TR::ldiv); + callTreeTop->insertBefore(TR::TreeTop::create(comp(), TR::Node::create(node, TR::treetop, 1, lcallNode))); node->setNumChildren(2); node->setAndIncChild(0, lcallNode);