(int idx)
| 178 | // Phi, but not for every Node. If the def goes dead, it is recursively |
| 179 | // killed, which may include 'this' Node. |
| 180 | Node delDef(int idx) { |
| 181 | unlock(); |
| 182 | Node old_def = in(idx); |
| 183 | _inputs.del(idx); |
| 184 | if( old_def.delUse(this) ) // If we removed the last use, the old def is now dead |
| 185 | old_def.kill(); // Kill old def |
| 186 | old_def.moveDepsToWorklist(); |
| 187 | return this; |
| 188 | } |
| 189 | |
| 190 | // Insert the numbered input, sliding other inputs to the right |
| 191 | Node insertDef(int idx, Node new_def) { |