@@ -344,7 +344,7 @@ bool RegionNode::is_possible_unsafe_loop(const PhaseGVN* phase) const {
344344 Node* n = raw_out (i);
345345 if (n != NULL && n->is_Phi ()) {
346346 PhiNode* phi = n->as_Phi ();
347- assert (phase-> eqv ( phi->in (0 ), this ) , " sanity check phi" );
347+ assert (phi->in (0 ) == this , " sanity check phi" );
348348 if (phi->outcnt () == 0 ) {
349349 continue ; // Safe case - no loops
350350 }
@@ -383,7 +383,7 @@ bool RegionNode::is_unreachable_from_root(const PhaseGVN* phase) const {
383383 for (uint i = 0 ; i < max; i++) {
384384 Node* m = n->raw_out (i);
385385 if (m != NULL && m->is_CFG ()) {
386- if (phase-> eqv (m, this ) ) {
386+ if (m == this ) {
387387 return false ; // We reached the Region node - it is not dead.
388388 }
389389 if (!visited.test_set (m->_idx ))
@@ -568,7 +568,7 @@ Node *RegionNode::Ideal(PhaseGVN *phase, bool can_reshape) {
568568 for (j = outs (); has_out (j); j++) {
569569 Node *n = out (j);
570570 if ( n->is_Phi () ) {
571- assert ( igvn-> eqv ( n->in (0 ), this ) , " " );
571+ assert (n->in (0 ) == this , " " );
572572 assert ( n->req () == 2 && n->in (1 ) != NULL , " Only one data input expected" );
573573 // Break dead loop data path.
574574 // Eagerly replace phis with top to avoid regionless phis.
@@ -619,7 +619,7 @@ Node *RegionNode::Ideal(PhaseGVN *phase, bool can_reshape) {
619619 // The fallthrough case since we already checked dead loops above.
620620 parent_ctrl = in (1 );
621621 assert (parent_ctrl != NULL , " Region is a copy of some non-null control" );
622- assert (!igvn-> eqv ( parent_ctrl, this ) , " Close dead loop" );
622+ assert (parent_ctrl != this , " Close dead loop" );
623623 }
624624 if (!add_to_worklist)
625625 igvn->add_users_to_worklist (this ); // Check for further allowed opts
@@ -641,7 +641,7 @@ Node *RegionNode::Ideal(PhaseGVN *phase, bool can_reshape) {
641641 igvn->replace_node (n, in);
642642 }
643643 else if ( n->is_Region () ) { // Update all incoming edges
644- assert ( !igvn-> eqv (n, this ) , " Must be removed from DefUse edges" );
644+ assert (n != this , " Must be removed from DefUse edges" );
645645 uint uses_found = 0 ;
646646 for ( uint k=1 ; k < n->req (); k++ ) {
647647 if ( n->in (k) == this ) {
@@ -654,12 +654,12 @@ Node *RegionNode::Ideal(PhaseGVN *phase, bool can_reshape) {
654654 }
655655 }
656656 else {
657- assert ( igvn-> eqv ( n->in (0 ), this ) , " Expect RegionNode to be control parent" );
657+ assert (n->in (0 ) == this , " Expect RegionNode to be control parent" );
658658 n->set_req (0 , parent_ctrl);
659659 }
660660#ifdef ASSERT
661661 for ( uint k=0 ; k < n->req (); k++ ) {
662- assert ( !igvn-> eqv ( n->in (k), this ) , " All uses of RegionNode should be gone" );
662+ assert (n->in (k) != this , " All uses of RegionNode should be gone" );
663663 }
664664#endif
665665 }
@@ -2078,7 +2078,7 @@ Node *PhiNode::Ideal(PhaseGVN *phase, bool can_reshape) {
20782078 if (can_reshape) {
20792079 opt = split_flow_path (phase, this );
20802080 // This optimization only modifies phi - don't need to check for dead loop.
2081- assert (opt == NULL || phase-> eqv ( opt, this ) , " do not elide phi" );
2081+ assert (opt == NULL || opt == this , " do not elide phi" );
20822082 if (opt != NULL ) return opt;
20832083 }
20842084
@@ -2194,7 +2194,7 @@ Node *PhiNode::Ideal(PhaseGVN *phase, bool can_reshape) {
21942194 if (ii->is_MergeMem ()) {
21952195 MergeMemNode* n = ii->as_MergeMem ();
21962196 merge_width = MAX2 (merge_width, n->req ());
2197- saw_self = saw_self || phase-> eqv (n->base_memory (), this );
2197+ saw_self = saw_self || (n->base_memory () == this );
21982198 }
21992199 }
22002200
0 commit comments