mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
do not override existing basic blocks when branching backwards!
This commit is contained in:
parent
5f1039630d
commit
c702e25a7a
@ -500,9 +500,11 @@ If NEGATED non nil negate the tested condition."
|
||||
(comp-emit (if negated
|
||||
(list 'cond-jump a b target bb)
|
||||
(list 'cond-jump a b bb target)))
|
||||
(puthash target
|
||||
(make-comp-block :sp (+ target-offset (comp-sp)))
|
||||
blocks)
|
||||
(unless (gethash target blocks)
|
||||
;; Create the bb target only if does not exixsts already.
|
||||
(puthash target
|
||||
(make-comp-block :sp (+ target-offset (comp-sp)))
|
||||
blocks))
|
||||
(comp-mark-block-closed))
|
||||
(comp-emit-block bb)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user