From 75c172f90bcd2ea39c58bb0c2915a0b48fe3c5fa Mon Sep 17 00:00:00 2001 From: Stephen Adams Date: Wed, 24 Jul 1996 03:09:30 +0000 Subject: [PATCH] Extended hashing to include reals rather than just (exact and inexact) integers. Enables flonums like PI to be subject to CSE. --- v8/src/compiler/rtlopt/rcse2.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v8/src/compiler/rtlopt/rcse2.scm b/v8/src/compiler/rtlopt/rcse2.scm index 8b23ef775..2d7a34803 100644 --- a/v8/src/compiler/rtlopt/rcse2.scm +++ b/v8/src/compiler/rtlopt/rcse2.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: rcse2.scm,v 1.1 1994/11/19 02:06:38 adams Exp $ +$Id: rcse2.scm,v 1.2 1996/07/24 03:09:30 adams Exp $ Copyright (c) 1988-1994 Massachusetts Institute of Technology @@ -145,7 +145,7 @@ MIT in each case. |# (define (continue expression) (rtl:reduce-subparts expression + 0 loop (lambda (object) - (cond ((integer? object) (inexact->exact object)) + (cond ((real? object) (round->exact object)) ((symbol? object) (symbol-hash object)) ((string? object) (string-hash object)) (else (hash object)))))) -- 2.25.1