| 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 | } |