From ee88cc241eea4d20337bdef57e9f84a31a895159 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Mon, 9 Jun 2008 11:38:34 +0200 Subject: [PATCH] Since OP_JT/JNIL check reg0, we can simplify the bytecodes for WHILE --- src/c/compiler.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/compiler.d b/src/c/compiler.d index 7798eff77..a3bf32d57 100644 --- a/src/c/compiler.d +++ b/src/c/compiler.d @@ -1046,7 +1046,7 @@ c_while_until(cl_object body, int flags, bool is_while) { /* Compile test */ asm_complete(OP_JMP, labelt); - compile_form(test, FLAG_VALUES); + compile_form(test, FLAG_REG0); asm_op(is_while? OP_JT : OP_JNIL); asm_arg(labelb - current_pc());