src/hotspot/share/opto/loopopts.cpp
changeset 52712 d17e09494308
parent 52429 b64514ff68fd
child 52925 9c18c9d839d3
--- a/src/hotspot/share/opto/loopopts.cpp	Tue Nov 27 09:35:02 2018 +0100
+++ b/src/hotspot/share/opto/loopopts.cpp	Tue Nov 27 14:49:13 2018 +0100
@@ -887,6 +887,11 @@
 // Do the real work in a non-recursive function.  Data nodes want to be
 // cloned in the pre-order so they can feed each other nicely.
 Node *PhaseIdealLoop::split_if_with_blocks_pre( Node *n ) {
+  BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2();
+  Node* bs_res = bs->split_if_pre(this, n);
+  if (bs_res != NULL) {
+    return bs_res;
+  }
   // Cloning these guys is unlikely to win
   int n_op = n->Opcode();
   if( n_op == Op_MergeMem ) return n;