mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix recognition of loop tree in a CFG
(cherry picked from commit 8f58b924628b87d13cfb8352d032a4932dcba17f)
This commit is contained in:
parent
b1b98097ee
commit
288e3b97fe
|
@ -175,7 +175,7 @@ public class LoopGraph implements Graph {
|
|||
if (loop == testLoop) {
|
||||
return bestLoop;
|
||||
}
|
||||
if (loop.walkIndex < testLoop.walkIndex) {
|
||||
if (loop.parent.walkIndex < testLoop.walkIndex) {
|
||||
testLoop.parent = loop.parent;
|
||||
loop.parent = testLoop;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user