From e3c062dce6385b90d01436b9831b5d34dde2e227 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Thu, 26 Oct 2017 21:30:06 +0200 Subject: [PATCH] Emit char? instead of br-if-char * module/language/cps/compile-bytecode.scm (compile-function): Use new instructions for char? test. --- module/language/cps/compile-bytecode.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/language/cps/compile-bytecode.scm b/module/language/cps/compile-bytecode.scm index 2c6fd77aa..966bb7c74 100644 --- a/module/language/cps/compile-bytecode.scm +++ b/module/language/cps/compile-bytecode.scm @@ -437,7 +437,7 @@ (($ $primcall 'nil? (a)) (unary/old emit-br-if-nil a)) (($ $primcall 'pair? (a)) (unary emit-pair? a)) (($ $primcall 'struct? (a)) (unary emit-struct? a)) - (($ $primcall 'char? (a)) (unary/old emit-br-if-char a)) + (($ $primcall 'char? (a)) (unary emit-char? a)) (($ $primcall 'symbol? (a)) (unary emit-symbol? a)) (($ $primcall 'variable? (a)) (unary emit-variable? a)) (($ $primcall 'vector? (a)) (unary emit-vector? a))