mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-16 08:50:08 +00:00
better loop style into comp-compute-edges
This commit is contained in:
parent
99258421bb
commit
8ef0a1814e
1 changed files with 9 additions and 10 deletions
|
@ -1244,16 +1244,15 @@ Top level forms for the current context are rendered too."
|
|||
(list "block does not end with a branch"
|
||||
bb
|
||||
(comp-func-symbol-name comp-func)))))
|
||||
finally (progn
|
||||
(setf (comp-func-edges comp-func)
|
||||
(nreverse (comp-func-edges comp-func)))
|
||||
;; Update edge refs into blocks.
|
||||
(cl-loop for edge in (comp-func-edges comp-func)
|
||||
do (push edge
|
||||
(comp-block-out-edges (comp-edge-src edge)))
|
||||
(push edge
|
||||
(comp-block-in-edges (comp-edge-dst edge))))
|
||||
(comp-log-edges comp-func)))))
|
||||
finally (setf (comp-func-edges comp-func)
|
||||
(nreverse (comp-func-edges comp-func)))
|
||||
;; Update edge refs into blocks.
|
||||
(cl-loop for edge in (comp-func-edges comp-func)
|
||||
do (push edge
|
||||
(comp-block-out-edges (comp-edge-src edge)))
|
||||
(push edge
|
||||
(comp-block-in-edges (comp-edge-dst edge))))
|
||||
(comp-log-edges comp-func))))
|
||||
|
||||
(defun comp-collect-rev-post-order (basic-block)
|
||||
"Walk BASIC-BLOCK children and return their name in reversed post-order."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue