From 40c4f03e3b29b0c9dcd68a8277fa3a7410db48b0 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 28 Aug 2023 14:10:34 +0200 Subject: [PATCH] Coroutine transformation: minor improvements --- .../backend/lowlevel/transform/CoroutineTransformation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {