Handbook
Glossary
record-uses ( n insn -- )
Vocabulary
compiler
.
cfg
.
ssa
.
interference
.
live-ranges
.
private
Inputs
n
an
integer
insn
an
insn
Outputs
None
Word description
Record live intervals so that all but the first input interfere with the output. This lets us coalesce the output with the first input.
Definition
USING:
assocs
compiler.cfg.def-use
compiler.cfg.instructions
kernel
math
namespaces
sequences
;
IN:
compiler.cfg.ssa.interference.live-ranges.private
:
record-uses
( n insn -- )
dup
uses-vregs
[
2drop
]
[
swap
def-is-use-insn?
[
[
first
local-kill-indices
get
set-at
]
[
rest-slice
]
2bi
]
unless
[
1
+
]
dip
[
local-kill-indices
get
set-at
]
with
each
]
if-empty
;