(int n)
| 190 | Type type = _type = compute(); |
| 191 | |
| 192 | // Replace constant computations from non-constants with a constant node |
| 193 | if (!(this instanceof ConstantNode) && type.isConstant()) { |
| 194 | kill(); // Kill `this` because replacing with a Constant |
| 195 | return new ConstantNode(type).peephole(); |
| 196 | } |
| 197 | |
| 198 | // Future chapter: Global Value Numbering goes here |
| 199 | |
| 200 | // Ask each node for a better replacement |
| 201 | Node n = idealize(); |
| 202 | if( n != null ) return n; |
no test coverage detected