diff options
author | AndreaCorallo <akrl@sdf.org> | 2020-03-01 14:42:41 +0000 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-03-01 19:22:27 +0000 |
commit | b41d76fa5e0bce80a3ef92f30243f9c53b9ac6bc (patch) | |
tree | 6a6558d02186994fceec2403c125b82ac604f162 /lisp/emacs-lisp | |
parent | 5543338b0c6245f0d1939d9c2617b65ded59ca3b (diff) | |
download | emacs-b41d76fa5e0bce80a3ef92f30243f9c53b9ac6bc.tar.gz emacs-b41d76fa5e0bce80a3ef92f30243f9c53b9ac6bc.tar.bz2 emacs-b41d76fa5e0bce80a3ef92f30243f9c53b9ac6bc.zip |
Remove relocation index form LIMPLE setimm
Given that every object identify a relocation class simplify setimm too.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/comp.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 7792605fff8..74d352394fb 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -665,7 +665,7 @@ If DST-N is specified use it otherwise assume it to be the current slot." (comp-add-const-to-relocs val) ;; Leave relocation index nil on purpose, will be fixed-up in final ;; by `comp-finalize-relocs'. - (comp-emit `(setimm ,(comp-slot) nil ,val))) + (comp-emit `(setimm ,(comp-slot) ,val))) (defun comp-make-curr-block (block-name entry-sp &optional addr) "Create a basic block with BLOCK-NAME and set it as current block. @@ -762,7 +762,7 @@ Return value is the fall through block name." ;; FIXME this not efficient for big jump tables. We should have a second ;; strategy for this case. (pcase last-insn - (`(setimm ,_ ,_ ,jmp-table) + (`(setimm ,_ ,jmp-table) (cl-loop for test being each hash-keys of jmp-table using (hash-value target-label) @@ -1619,7 +1619,7 @@ Here goes everything that can be done not iteratively (read once). (`(,(or 'callref 'direct-callref) ,_f . ,args) (when backward (comp-ref-args-to-array args))) - (`(setimm ,lval ,_ ,v) + (`(setimm ,lval ,v) (setf (comp-mvar-const-vld lval) t (comp-mvar-constant lval) v (comp-mvar-type lval) (comp-strict-type-of v))))))) @@ -1658,7 +1658,7 @@ Here goes everything that can be done not iteratively (read once). ;; See `comp-emit-setimm'. (comp-add-const-to-relocs value) (setf (car insn) 'setimm - (cddr insn) `(nil ,value)))))) + (cddr insn) `(,value)))))) (defun comp-propagate-insn (insn) "Propagate within INSN." |