()
| 131 | |
| 132 | // Run ideal optimizations |
| 133 | public CodeGen opto() { |
| 134 | assert _phase == Phase.Parse; |
| 135 | _phase = Phase.Opto; |
| 136 | |
| 137 | // Pessimistic peephole optimization on a worklist |
| 138 | _iter.iterate(this); |
| 139 | |
| 140 | // TODO: |
| 141 | // Optimistic |
| 142 | // TODO: |
| 143 | // loop unroll, peel, RCE, etc |
| 144 | return this; |
| 145 | } |
| 146 | public <N extends Node> N add( N n ) { return (N)_iter.add(n); } |
| 147 | public void addAll( Ary<Node> ary ) { _iter.addAll(ary); } |
| 148 |