sbcl.sbcl/tests/block-compile-test-3.lisp
Charles Zhang 18fdee7d7e block compilation: Fix inlining.
* We weren't setting functional-inlinep at all for global functions
declared inline.
* Port an assertion fix by Gerd Moellmann.
* The XREF code was relying on incorrect behavior. Remedy that.
2020-04-18 16:43:34 -07:00

10 lines
201 B
Common Lisp

(declaim (inline inl))
(defun inl (x) (1- x))
(defun a (x)
(declare (type (unsigned-byte 64) x))
(logcount (inl x)))
(defun foo2 (x) (1+ (bar2 x)))
(declaim (inline bar2))
(defun bar2 (x) (1+ x))