mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-18 04:14:50 -08:00
Removes some temporary code
This commit is contained in:
parent
97dc66968e
commit
8d0c412634
|
@ -96,15 +96,14 @@ class InterferenceGraphBuilder {
|
||||||
backEdges.get(edgeSet.keys[j]).add(i);
|
backEdges.get(edgeSet.keys[j]).add(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
for (int i = 0; i < edges.size(); ++i) {
|
|
||||||
IntOpenHashSet edgeSet = edges.get(i);
|
|
||||||
for (int j = 0; j < edgeSet.allocated.length; ++j) {
|
for (int j = 0; j < edgeSet.allocated.length; ++j) {
|
||||||
if (edgeSet.allocated[j]) {
|
if (edgeSet.allocated[j]) {
|
||||||
builder.addEdge(i, edgeSet.keys[j]);
|
backEdges.get(i).add(edgeSet.keys[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
edgeSet = backEdges.get(i);
|
}
|
||||||
|
for (int i = 0; i < edges.size(); ++i) {
|
||||||
|
IntOpenHashSet edgeSet = backEdges.get(i);
|
||||||
for (int j = 0; j < edgeSet.allocated.length; ++j) {
|
for (int j = 0; j < edgeSet.allocated.length; ++j) {
|
||||||
if (edgeSet.allocated[j]) {
|
if (edgeSet.allocated[j]) {
|
||||||
builder.addEdge(edgeSet.keys[j], i);
|
builder.addEdge(edgeSet.keys[j], i);
|
||||||
|
|
|
@ -210,9 +210,6 @@ public class RegisterAllocator {
|
||||||
GraphBuilder renamedGraph = new GraphBuilder();
|
GraphBuilder renamedGraph = new GraphBuilder();
|
||||||
for (int i = 0; i < graph.size(); ++i) {
|
for (int i = 0; i < graph.size(); ++i) {
|
||||||
for (int j : graph.outgoingEdges(i)) {
|
for (int j : graph.outgoingEdges(i)) {
|
||||||
if (i >= varMap.length || j >= varMap.length) {
|
|
||||||
throw new RuntimeException();
|
|
||||||
}
|
|
||||||
renamedGraph.addEdge(varMap[i], varMap[j]);
|
renamedGraph.addEdge(varMap[i], varMap[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user