From e840f5bc2aac535aac2c87b6eac1db3b0bea5229 Mon Sep 17 00:00:00 2001 From: Juho Snellman Date: Sat, 5 Nov 2005 22:56:50 +0000 Subject: [PATCH] 0.9.6.20: Shorter x86-64 inline-allocation code for constant allocations. (sbcl-devel "Simple allocation patch" by Alexander Kjeldaas, 2005-03-11) --- src/compiler/x86-64/macros.lisp | 10 +++++++--- version.lisp-expr | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/compiler/x86-64/macros.lisp b/src/compiler/x86-64/macros.lisp index ccfc7d7..002f7de 100644 --- a/src/compiler/x86-64/macros.lisp +++ b/src/compiler/x86-64/macros.lisp @@ -169,9 +169,13 @@ (allocation-tramp alloc-tn size)) (t (inst mov temp-reg-tn free-pointer) - (unless (and (tn-p size) (location= alloc-tn size)) - (inst mov alloc-tn size)) - (inst add alloc-tn temp-reg-tn) + (if (tn-p size) + (if (location= alloc-tn size) + (inst add alloc-tn temp-reg-tn) + (inst lea alloc-tn + (make-ea :qword :base temp-reg-tn :index size))) + (inst lea alloc-tn + (make-ea :qword :base temp-reg-tn :disp size))) (inst cmp end-addr alloc-tn) (inst jmp :be NOT-INLINE) (inst mov free-pointer alloc-tn) diff --git a/version.lisp-expr b/version.lisp-expr index 5448feb..411a8ea 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"0.9.6.19" +"0.9.6.20" -- 1.7.10.4