< prev index next >
src/share/vm/opto/node.cpp
Print this page
rev 9570 : [backport] Fix memory Phis with only data uses
@@ -1404,10 +1404,12 @@
// The restriction (outcnt() <= 2) is the same as in set_req_X()
// and remove_globally_dead_node().
igvn->add_users_to_worklist( n );
} else if (n->Opcode() == Op_AddP && CallLeafNode::has_only_g1_wb_pre_uses(n)) {
igvn->add_users_to_worklist(n);
+ } else if (n->is_Phi() && n->as_Phi()->has_only_data_users()) {
+ igvn->_worklist.push(n);
}
}
}
} // (dead->outcnt() == 0)
} // while (nstack.size() > 0) for outputs
< prev index next >