From f0594be035ebc53813a9a4c5d09cf8a3e61c8835 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Thu, 29 Oct 2015 14:06:11 +0000 Subject: [PATCH] Fix slot representation computation for fadd, fmul, etc * module/language/cps/slot-allocation.scm (compute-var-representations): fadd, fmul and so on also define f64 values. --- module/language/cps/slot-allocation.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/language/cps/slot-allocation.scm b/module/language/cps/slot-allocation.scm index 6fc2a5399..8d865d739 100644 --- a/module/language/cps/slot-allocation.scm +++ b/module/language/cps/slot-allocation.scm @@ -790,7 +790,8 @@ are comparable with eqv?. A tmp slot may be used." (($ $values (arg)) (intmap-add representations var (intmap-ref representations arg))) - (($ $primcall (or 'scm->f64 'bv-f32-ref 'bv-f64-ref)) + (($ $primcall (or 'scm->f64 'bv-f32-ref 'bv-f64-ref + 'fadd 'fsub 'fmul 'fdiv)) (intmap-add representations var 'f64)) (_ (intmap-add representations var 'scm))))