Add a node to the list of dependencies. Only add it if its not an input or output of this node, that is, it is at least one step away. The node being added must benefit from this node being peepholed.
( N dep )
| 547 | int _hash; |
| 548 | |
| 549 | // If the _hash is set, then the Node is in the GVN table; remove it. |
| 550 | void unlock() { |
| 551 | if( _hash==0 ) return; |
| 552 | Node old = CODE._gvn.remove(this); // Pull from table |
| 553 | assert old==this; |
| 554 | _hash=0; // Out of table now |
| 555 | } |
| 556 | |
| 557 | // Hash of opcode and inputs |
| 558 | @Override public final int hashCode() { |
| 559 | if( _hash != 0 ) return _hash; |
| 560 | int hash = hash(); |
| 561 | for( Node n : _inputs ) |
| 562 | if( n != null ) |
no test coverage detected