diff --git a/core/src/main/java/org/teavm/backend/lowlevel/transform/CoroutineTransformation.java b/core/src/main/java/org/teavm/backend/lowlevel/transform/CoroutineTransformation.java index 644aeb3fa..5335330e7 100644 --- a/core/src/main/java/org/teavm/backend/lowlevel/transform/CoroutineTransformation.java +++ b/core/src/main/java/org/teavm/backend/lowlevel/transform/CoroutineTransformation.java @@ -105,6 +105,7 @@ public class CoroutineTransformation { for (BasicBlock block : program.getBasicBlocks()) { if (hasSplitInstructions(block)) { hasJob = true; + break; } } if (!hasJob) { @@ -124,7 +125,6 @@ public class CoroutineTransformation { } splitter.fixProgram(); processIrreducibleCfg(); - new PhiUpdater().updatePhis(program, methodReference.parameterCount() + 1); } private void createSplitPrologue() {