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

Method delDef

chapter21/src/main/java/com/seaofnodes/simple/node/Node.java:194–202  ·  view source on GitHub ↗
(int idx)

Source from the content-addressed store, hash-verified

192 unlock();
193 while( nIns() > n ) {
194 Node old_def = _inputs.pop();
195 if( old_def != null && // If it exists and
196 old_def.delUse(this) ) // If we removed the last use, the old def is now dead
197 old_def.kill(); // Kill old def
198 }
199 }
200
201 /**
202 * Kill a Node with no <em>uses</em>, by setting all of its <em>defs</em>
203 * to null. This may recursively kill more Nodes, and is basically dead
204 * code elimination.
205 */

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