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