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