mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-13 09:32:47 +00:00
* Fix missing tail recursion elimination
* lisp/emacs-lisp/comp.el (comp-tco-func): Fix tail recursion elimination given now functions in LIMPLE are expressed with the C name.
This commit is contained in:
parent
7e004d24a4
commit
b0f683ec16
@ -2299,7 +2299,7 @@ Return the list of m-var ids nuked."
|
||||
(`((set ,l-val (direct-call ,func . ,args))
|
||||
(comment ,_comment)
|
||||
(return ,ret-val))
|
||||
(when (and (eq func (comp-func-name comp-func))
|
||||
(when (and (string= func (comp-func-c-name comp-func))
|
||||
(eq l-val ret-val))
|
||||
(let ((tco-seq (comp-form-tco-call-seq args)))
|
||||
(setf (car insns-seq) (car tco-seq)
|
||||
|
Loading…
Reference in New Issue
Block a user