From 07ae36e6724dff5422e04df7da33800fc1c5483e Mon Sep 17 00:00:00 2001 From: dzaima Date: Fri, 1 Oct 2021 19:01:28 +0300 Subject: [PATCH] faster loop when not yet seen PRED --- src/vm.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/vm.c b/src/vm.c index 0d96951e..6aae419c 100644 --- a/src/vm.c +++ b/src/vm.c @@ -267,19 +267,25 @@ Block* compileBlock(B block, Comp* comp, bool* bDone, u32* bc, usz bcIA, B allBl } } i32 bcStart = TSSIZE(newBC); - u32* c = bc+idx; + u32* c; bool remapArgs = false; - bool argUsed[6] = {0,0,0,0,0,0}; - while (true) { - if (*c==PRED) remapArgs = true; - if (*c==VARO | *c==VARM | *c==VARU) if (c[1]==0 && c[2]