update-successor-predecessor ( copies old-bb succ -- )


Vocabulary
compiler.cfg.branch-splitting

Inputs
copiesan object
old-bban object
succan object


Outputs
None

Definition


:: update-successor-predecessor ( copies old-bb succ -- )
succ predecessors>> dup >array :> ( preds preds' ) preds
delete-all preds' [
dup old-bb eq?
[ drop copies preds push-all ] [ preds push ] if
] each ;