diff -r 8f849d3ec1e5 -r d376d86b0a01 src/hotspot/share/opto/node.cpp --- a/src/hotspot/share/opto/node.cpp Tue Oct 08 15:30:46 2019 +0200 +++ b/src/hotspot/share/opto/node.cpp Wed Oct 09 12:30:06 2019 +0000 @@ -546,9 +546,6 @@ if (n->is_SafePoint()) { n->as_SafePoint()->clone_replaced_nodes(); } - if (n->is_Load()) { - n->as_Load()->copy_barrier_info(this); - } return n; // Return the clone } @@ -1473,10 +1470,6 @@ if (req() < 2 || (_flags & Flag_needs_anti_dependence_check) == 0) { return false; } - BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2(); - if (!bs->needs_anti_dependence_check(this)) { - return false; - } return in(1)->bottom_type()->has_memory(); }