--- old/src/hotspot/share/opto/node.cpp 2018-06-08 19:45:33.543696572 +0200 +++ new/src/hotspot/share/opto/node.cpp 2018-06-08 19:45:33.274684900 +0200 @@ -1130,7 +1130,7 @@ if (this->is_Store()) { // Condition for back-to-back stores folding. return n->Opcode() == op && n->in(MemNode::Memory) == this; - } else if (this->is_Load() || this->is_DecodeN()) { + } else if (this->is_Load() || this->is_DecodeN() || this->is_Phi()) { // Condition for removing an unused LoadNode or DecodeNNode from the MemBarAcquire precedence input return n->Opcode() == Op_MemBarAcquire; } else if (op == Op_AddL) {