From c74b2257c7f43c6fd247113a277de3ef84e5f318 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 27 Oct 2017 15:02:46 +0200 Subject: [PATCH] Use new instructions for null?, nil? * module/language/cps/compile-bytecode.scm (compile-function): Use new instructions for branches on null? and nil?. --- module/language/cps/compile-bytecode.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/language/cps/compile-bytecode.scm b/module/language/cps/compile-bytecode.scm index 966bb7c74..c85fbd87a 100644 --- a/module/language/cps/compile-bytecode.scm +++ b/module/language/cps/compile-bytecode.scm @@ -433,8 +433,8 @@ (match exp (($ $values (sym)) (unary/old emit-br-if-true sym)) (($ $primcall 'heap-object? (a)) (unary emit-heap-object? a)) - (($ $primcall 'null? (a)) (unary/old emit-br-if-null a)) - (($ $primcall 'nil? (a)) (unary/old emit-br-if-nil a)) + (($ $primcall 'null? (a)) (unary emit-null? a)) + (($ $primcall 'nil? (a)) (unary emit-nil? a)) (($ $primcall 'pair? (a)) (unary emit-pair? a)) (($ $primcall 'struct? (a)) (unary emit-struct? a)) (($ $primcall 'char? (a)) (unary emit-char? a))