Removes some temporary code

This commit is contained in:
Alexey Andreev 2014-03-15 01:06:57 +04:00
parent 97dc66968e
commit 8d0c412634
2 changed files with 4 additions and 8 deletions

View File

@ -96,15 +96,14 @@ class InterferenceGraphBuilder {
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) {
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) {
if (edgeSet.allocated[j]) {
builder.addEdge(edgeSet.keys[j], i);

View File

@ -210,9 +210,6 @@ public class RegisterAllocator {
GraphBuilder renamedGraph = new GraphBuilder();
for (int i = 0; i < graph.size(); ++i) {
for (int j : graph.outgoingEdges(i)) {
if (i >= varMap.length || j >= varMap.length) {
throw new RuntimeException();
}
renamedGraph.addEdge(varMap[i], varMap[j]);
}
}