split-interval ( live-interval n -- before after )


Vocabulary
compiler.cfg.linear-scan.allocation.splitting

Inputs
live-intervala live-interval-state
nan integer


Outputs
beforea live-interval-state
aftera live-interval-state


Word description
Splits the interval in two around the flow point 'n'.

Definition


:: split-interval ( live-interval n -- before after )
live-interval n check-split
live-interval clone :> before live-interval clone :> after
live-interval uses>> n split-uses before after
[ uses<< ] bi-curry@ bi*
live-interval ranges>> n split-ranges before after
[ ranges<< ] bi-curry@ bi*
before split-before after split-after ;