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

Method delDef

chapter16/src/main/java/com/seaofnodes/simple/node/Node.java:179–187  ·  view source on GitHub ↗
(int idx)

Source from the content-addressed store, hash-verified

177 moveDepsToWorklist(); // User-count and anti-dependence queries can now change.
178 return _outputs.isEmpty();
179 }
180
181 // Shortcut for "popping" until n nodes. A "pop" is basically a
182 // setDef(last,null) followed by lowering the nIns() count.
183 void popUntil(int n) {
184 unlock();
185 while( nIns() > n ) {
186 Node old_def = _inputs.pop();
187 if( old_def != null && // If it exists and
188 old_def.delUse(this) ) // If we removed the last use, the old def is now dead
189 old_def.kill(); // Kill old def
190 }

Callers 2

idealizeMethod · 0.45
idealizeMethod · 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