| 569 | |
| 570 | // ------------------------------------------------------------------------ |
| 571 | // |
| 572 | |
| 573 | /** Is this Node Memory related */ |
| 574 | public boolean isMem() { return false; } |
| 575 | |
| 576 | // Semantic change to the graph (so NOT a peephole), used by the Parser. |
| 577 | // If any input is a float, flip to a float-flavored opcode and widen any |
| 578 | // non-float input. |
| 579 | public final Node widen() { |
| 580 | if( !hasFloatInput() ) return this; |
| 581 | Node flt = copyF(); |
| 582 | if( flt==null ) return this; |
| 583 | for( int i=1; i<nIns(); i++ ) |
| 584 | flt.setDef(i, in(i)._type instanceof TypeFloat ? in(i) : new ToFloatNode(in(i)).peephole()); |