@@ -757,7 +757,7 @@ Node* ShenandoahBarrierC2Support::no_branches(Node* c, Node* dom, bool allow_one
757757 return NodeSentinel; // unsupported
758758 } else if (c->Opcode () == Op_CatchProj) {
759759 return NodeSentinel; // unsupported
760- } else if (c->Opcode () == Op_CProj && next->Opcode () == Op_NeverBranch ) {
760+ } else if (c->Opcode () == Op_CProj && next->is_NeverBranch () ) {
761761 return NodeSentinel; // unsupported
762762 } else {
763763 assert (next->unique_ctrl_out () == c, " unsupported branch pattern" );
@@ -2002,7 +2002,7 @@ Node* ShenandoahIUBarrierNode::Identity(PhaseGVN* phase) {
20022002static bool has_never_branch (Node* root) {
20032003 for (uint i = 1 ; i < root->req (); i++) {
20042004 Node* in = root->in (i);
2005- if (in != NULL && in->Opcode () == Op_Halt && in->in (0 )->is_Proj () && in->in (0 )->in (0 )->Opcode () == Op_NeverBranch ) {
2005+ if (in != NULL && in->Opcode () == Op_Halt && in->in (0 )->is_Proj () && in->in (0 )->in (0 )->isNeverBranch () ) {
20062006 return true ;
20072007 }
20082008 }
@@ -2033,20 +2033,20 @@ void MemoryGraphFixer::collect_memory_nodes() {
20332033 if (in->in (0 )->is_Region ()) {
20342034 Node* r = in->in (0 );
20352035 for (uint j = 1 ; j < r->req (); j++) {
2036- assert (r->in (j)->Opcode () != Op_NeverBranch , " " );
2036+ assert (! r->in (j)->is_NeverBranch () , " " );
20372037 }
20382038 } else {
20392039 Node* proj = in->in (0 );
20402040 assert (proj->is_Proj (), " " );
20412041 Node* in = proj->in (0 );
2042- assert (in->is_CallStaticJava () || in->Opcode () == Op_NeverBranch || in->Opcode () == Op_Catch || proj->is_IfProj (), " " );
2042+ assert (in->is_CallStaticJava () || in->is_NeverBranch () || in->Opcode () == Op_Catch || proj->is_IfProj (), " " );
20432043 if (in->is_CallStaticJava ()) {
20442044 mem = in->in (TypeFunc::Memory);
20452045 } else if (in->Opcode () == Op_Catch) {
20462046 Node* call = in->in (0 )->in (0 );
20472047 assert (call->is_Call (), " " );
20482048 mem = call->in (TypeFunc::Memory);
2049- } else if (in->Opcode () == Op_NeverBranch ) {
2049+ } else if (in->is_NeverBranch () ) {
20502050 mem = collect_memory_for_infinite_loop (in);
20512051 }
20522052 }
@@ -2518,7 +2518,7 @@ void MemoryGraphFixer::fix_mem(Node* ctrl, Node* new_ctrl, Node* mem, Node* mem_
25182518 }
25192519 }
25202520 } else if (!mem_is_valid (m, u) &&
2521- !(u->Opcode () == Op_CProj && u->in (0 )->Opcode () == Op_NeverBranch && u->as_Proj ()->_con == 1 )) {
2521+ !(u->Opcode () == Op_CProj && u->in (0 )->is_NeverBranch () && u->as_Proj ()->_con == 1 )) {
25222522 uses.push (u);
25232523 }
25242524 }
0 commit comments