[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65527: 30.0.50; native compilation: type optimization does not alway
From: |
Andrea Corallo |
Subject: |
bug#65527: 30.0.50; native compilation: type optimization does not always work for `lisp' return value |
Date: |
Fri, 25 Aug 2023 07:44:50 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Ihor Radchenko <yantar92@posteo.net> writes:
> X-Debbugs-CC: acorallo@gnu.org
>
> Hi,
>
> Following up https://yhetil.org/emacs-devel/yp1pm3b7a2x.fsf@fencepost.gnu.org
>
> When we have
>
> (defun test1 ()
> (let ((x (list 'a 'b 'c)))
> (when (listp x) "Return value")))
>
> native compilation, fails to optimize away the `listp' return value
> despite it is known that x is a list at compile time.
>
Thanks, will look at.
Andrea