mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix another bug in DFG simplifier
This commit is contained in:
parent
31f6439652
commit
793d1e19d2
|
@ -66,11 +66,13 @@ public class DataFlowGraphBuilder implements InstructionReader {
|
|||
startNodes.add(i);
|
||||
}
|
||||
for (int pred : graph.incomingEdges(i)) {
|
||||
if (importantNodes.contains(classes.find(pred)) && importantNodes.contains(classes.find(i))) {
|
||||
boolean predImportant = importantNodes.contains(classes.find(pred));
|
||||
boolean nodeImportant = importantNodes.contains(classes.find(i));
|
||||
if (predImportant && nodeImportant) {
|
||||
continue;
|
||||
}
|
||||
int newCls = classes.union(pred, i);
|
||||
if (importantNodes.contains(pred)) {
|
||||
if (nodeImportant || predImportant) {
|
||||
importantNodes.add(newCls);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user