| 192 | // Phi, but not for every Node. If the def goes dead, it is recursively |
| 193 | // killed, which may include 'this' Node. |
| 194 | public Node delDef(int idx) { |
| 195 | unlock(); |
| 196 | Node old_def = in(idx); |
| 197 | _inputs.del(idx); |
| 198 | if( old_def.delUse(this) ) // If we removed the last use, the old def is now dead |
| 199 | old_def.kill(); // Kill old def |
| 200 | old_def.moveDepsToWorklist(); |
| 201 | return this; |
| 202 | } |
| 203 | |
| 204 | // Insert the numbered input, sliding other inputs to the right |
| 205 | Node insertDef(int idx, Node new_def) { |