]> git.eshelyaron.com Git - emacs.git/commit
Do not emit assumptions referencing clobbered mvars (bug#46670)
authorAndrea Corallo <akrl@sdf.org>
Tue, 23 Feb 2021 13:35:11 +0000 (14:35 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 23 Feb 2021 22:19:36 +0000 (23:19 +0100)
commitbddd7a2d1376d8ee7a318fc837aaaa98b9d9ce49
tree50605829d82fa62daa909776274ab929692724b9
parent89e9b051809d85d50d67c52d0388f8fffee8ba32
Do not emit assumptions referencing clobbered mvars (bug#46670)

* lisp/emacs-lisp/comp.el (comp-func): Add `vframe-size' slot.
(comp-new-frame): Add `vsize' parameter.
(comp-limplify-top-level, comp-limplify-function): Update for new
`comp-new-frame'.
(comp-maybe-add-vmvar): New function.
(comp-add-cond-cstrs): Logic update to emit assumptions not
referencing clobbered variables.
(comp-place-phis, comp-ssa, comp-ssa-rename-insn)
(comp-ssa-rename): Update rename logic to rename also negative
slots.
(comp-fwprop-insn): Update to handle `(assume mvar mvar)' form.
* test/src/comp-tests.el (46670-1): Add testcase.
* test/src/comp-test-funcs.el (comp-test-46670-1-f)
(comp-test-46670-2-f): New functions.
lisp/emacs-lisp/comp.el
test/src/comp-test-funcs.el
test/src/comp-tests.el