summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp-cstr.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2021-01-18 22:37:52 +0100
committerAndrea Corallo <akrl@sdf.org>2021-01-19 21:58:53 +0100
commit0ffb3dfaa483b0c5cf1f7f367efcb5e9c041ab53 (patch)
treea0bf20d5f19426834a8db5dbb8f5bf2b110e797c /lisp/emacs-lisp/comp-cstr.el
parent39b3bcd324c4519ae3b204a31ab1a385b8ba9574 (diff)
downloademacs-0ffb3dfaa483b0c5cf1f7f367efcb5e9c041ab53.tar.gz
emacs-0ffb3dfaa483b0c5cf1f7f367efcb5e9c041ab53.tar.bz2
emacs-0ffb3dfaa483b0c5cf1f7f367efcb5e9c041ab53.zip
Do not add unnecesary arg constraints (bug#45812 bug#45705 bug#45751).
These have the effect of bloating the IR for no effect killing compile time. The typical cases for that are extremely long backuoted lists. * lisp/emacs-lisp/comp-cstr.el (comp-cstr-t): New var. * lisp/emacs-lisp/comp.el (comp-add-call-cstr): No need to add arg call constraints if this is t.
Diffstat (limited to 'lisp/emacs-lisp/comp-cstr.el')
-rw-r--r--lisp/emacs-lisp/comp-cstr.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/comp-cstr.el b/lisp/emacs-lisp/comp-cstr.el
index 651c7b7931e..1afb928e10c 100644
--- a/lisp/emacs-lisp/comp-cstr.el
+++ b/lisp/emacs-lisp/comp-cstr.el
@@ -179,6 +179,9 @@ Return them as multiple value."
(defvar comp-cstr-one (comp-value-to-cstr 1)
"Represent the integer immediate one.")
+(defvar comp-cstr-t (comp-type-to-cstr t)
+ "Represent the superclass t.")
+
;;; Value handling.