src/hotspot/share/opto/loopPredicate.cpp
changeset 54423 6c0ab8bd8da5
parent 53357 c52a37f40324
child 58106 79186d82463e
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54422:f562f8318ebd 54423:6c0ab8bd8da5
   534   // the possibility to push n onto the stack for further processing.
   534   // the possibility to push n onto the stack for further processing.
   535   void visit(Node* use, Node* n) {
   535   void visit(Node* use, Node* n) {
   536     if (_lpt->is_invariant(n)) { // known invariant
   536     if (_lpt->is_invariant(n)) { // known invariant
   537       _invariant.set(n->_idx);
   537       _invariant.set(n->_idx);
   538     } else if (!n->is_CFG()) {
   538     } else if (!n->is_CFG()) {
   539       if (n->Opcode() == Op_ShenandoahWriteBarrier) {
       
   540         return;
       
   541       }
       
   542       Node *n_ctrl = _phase->ctrl_or_self(n);
   539       Node *n_ctrl = _phase->ctrl_or_self(n);
   543       Node *u_ctrl = _phase->ctrl_or_self(use); // self if use is a CFG
   540       Node *u_ctrl = _phase->ctrl_or_self(use); // self if use is a CFG
   544       if (_phase->is_dominator(n_ctrl, u_ctrl)) {
   541       if (_phase->is_dominator(n_ctrl, u_ctrl)) {
   545         _stack.push(n, n->in(0) == NULL ? 1 : 0);
   542         _stack.push(n, n->in(0) == NULL ? 1 : 0);
   546       }
   543       }