(int idx)
| 192 | unlock(); |
| 193 | while( nIns() > n ) { |
| 194 | Node old_def = _inputs.pop(); |
| 195 | if( old_def != null && // If it exists and |
| 196 | old_def.delUse(this) ) // If we removed the last use, the old def is now dead |
| 197 | old_def.kill(); // Kill old def |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * Kill a Node with no <em>uses</em>, by setting all of its <em>defs</em> |
| 203 | * to null. This may recursively kill more Nodes, and is basically dead |
| 204 | * code elimination. |
| 205 | */ |