Handbook
Glossary
rewrite-gather-vector-4 ( insn -- insn/f )
Vocabulary
compiler
.
cfg
.
value-numbering
.
simd
Inputs
insn
an
object
Outputs
insn/f
an
object
Definition
USING:
accessors
combinators
compiler.cfg.value-numbering.graph
compiler.cfg.value-numbering.rewrite
generalizations
kernel
;
IN:
compiler.cfg.value-numbering.simd
:
rewrite-gather-vector-4
( insn -- insn/f )
dup
{
[
src1>>
]
[
src2>>
]
[
src3>>
]
[
src4>>
]
}
cleave
[
vreg>insn
]
4
napply
{
{
[
4dup
[
literal-insn?
]
4
napply
and
and
and
]
[
fold-gather-vector-4
]
}
[
5drop
f
]
}
cond
;