MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / delDef

Method delDef

chapter23/src/main/java/com/seaofnodes/simple/node/Node.java:196–204  ·  view source on GitHub ↗
(int idx)

Source from the content-addressed store, hash-verified

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

Callers 5

parseMethod · 0.45
unlink_allMethod · 0.45
idealizeMethod · 0.45
idealizeMethod · 0.45
deadPathMethod · 0.45

Calls 6

unlockMethod · 0.95
inMethod · 0.95
delUseMethod · 0.95
killMethod · 0.95
moveDepsToWorklistMethod · 0.95
delMethod · 0.45

Tested by

no test coverage detected