Kill a Node with no uses , by setting all of its defs to null. This may recursively kill more Nodes and is basically dead code elimination. This function is co-recursive with #popN.
( )
| 216 | Node rez = n == null ? this : n; |
| 217 | if( obs != null ) obs.after(this, n == null && old == _type ? null : rez, false); |
| 218 | return rez; |
| 219 | } |
| 220 | |
| 221 | private Node peepholeOpt() { |
| 222 | // Compute initial or improved Type |
| 223 | Type type = _type = compute(); |
| 224 | |
| 225 | // Replace constant computations from non-constants with a constant node |
| 226 | if (!(this instanceof ConstantNode) && type.isConstant()) |
no test coverage detected