src/share/vm/opto/node.cpp

Print this page

        

*** 1430,1445 **** return true; } return false; } - //------------------------------Ideal_DU_postCCP------------------------------- - // Idealize graph, using DU info. Must clone result into new-space - Node *Node::Ideal_DU_postCCP( PhaseCCP * ) { - return NULL; // Default to no change - } - //------------------------------hash------------------------------------------- // Hash function over Nodes. uint Node::hash() const { uint sum = 0; for( uint i=0; i<_cnt; i++ ) // Add in all inputs --- 1430,1439 ----
*** 2124,2133 **** --- 2118,2135 ---- } } return found; } + void Node::ensure_control_or_add_prec(Node* c) { + if (in(0) == NULL) { + set_req(0, c); + } else if (in(0) != c) { + add_prec(c); + } + } + //============================================================================= //------------------------------yank------------------------------------------- // Find and remove void Node_List::yank( Node *n ) { uint i;