Since OP_JT/JNIL check reg0, we can simplify the bytecodes for WHILE

This commit is contained in:
Juan Jose Garcia Ripoll 2008-06-09 11:38:34 +02:00
parent abea2b728b
commit ee88cc241e

View file

@ -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());