MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / opto

Method opto

chapter19/src/main/java/com/seaofnodes/simple/CodeGen.java:133–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 15

fuzzPeepTimingMethod · 0.95
runMethod · 0.95
testJigMethod · 0.45
testFloatMethod · 0.45
testSquareRootMethod · 0.45
testFPOpsMethod · 0.45
testJigMethod · 0.45
testPhiParalleAssignMethod · 0.45
testType0Method · 0.45
testFcn0Method · 0.45
testFcn1Method · 0.45
testFcn2Method · 0.45

Calls 1

iterateMethod · 0.45

Tested by 15

fuzzPeepTimingMethod · 0.76
testJigMethod · 0.36
testFloatMethod · 0.36
testSquareRootMethod · 0.36
testFPOpsMethod · 0.36
testJigMethod · 0.36
testPhiParalleAssignMethod · 0.36
testType0Method · 0.36
testFcn0Method · 0.36
testFcn1Method · 0.36
testFcn2Method · 0.36
testFcn3Method · 0.36