[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f4de81af8fc 2/5: * lisp/emacs-lisp/comp.el (comp-fwprop-call): Ex
From: |
Andrea Corallo |
Subject: |
master f4de81af8fc 2/5: * lisp/emacs-lisp/comp.el (comp-fwprop-call): Extend to understand `record' |
Date: |
Tue, 23 May 2023 11:20:54 -0400 (EDT) |
branch: master
commit f4de81af8fc54ef278cdb76fbc5885ed7d05b2d7
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* lisp/emacs-lisp/comp.el (comp-fwprop-call): Extend to understand `record'
---
lisp/emacs-lisp/comp.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 2e07b0b0e60..289c5bf2ac4 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -3198,7 +3198,11 @@ Fold the call in case."
(+ (comp-cstr-add lval args))
(- (comp-cstr-sub lval args))
(1+ (comp-cstr-add lval `(,(car args) ,comp-cstr-one)))
- (1- (comp-cstr-sub lval `(,(car args) ,comp-cstr-one))))))
+ (1- (comp-cstr-sub lval `(,(car args) ,comp-cstr-one)))
+ (record (when (comp-cstr-imm-vld-p (car args))
+ (comp-cstr-shallow-copy lval
+ (comp-type-spec-to-cstr
+ (comp-cstr-imm (car args)))))))))
(defun comp-fwprop-insn (insn)
"Propagate within INSN."