mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-16 08:50:08 +00:00
fix ref ssa propagation
This commit is contained in:
parent
f97c03ebca
commit
93aeb781e1
1 changed files with 3 additions and 1 deletions
|
@ -1489,7 +1489,9 @@ This can run just once."
|
|||
(when (cl-reduce #'eq (mapcar #'comp-mvar-type rest))
|
||||
(setf (comp-mvar-type lval) (comp-mvar-type (car rest))))
|
||||
;; Reference propagation.
|
||||
(setf (comp-mvar-ref lval) (cl-every #'comp-mvar-ref rest)))))
|
||||
(let ((operands (cons lval rest)))
|
||||
(when (cl-some #'comp-mvar-ref operands)
|
||||
(mapc (lambda (x) (setf (comp-mvar-ref x) t)) rest))))))
|
||||
|
||||
(defun comp-propagate* ()
|
||||
"Propagate for set and phi operands."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue