Handbook
Glossary
useless-compare? ( insn -- ? )
Vocabulary
compiler
.
cfg
.
alias-analysis
Inputs
insn
a
##compare
instruction
Outputs
?
a
boolean
Word description
Checks if the comparison instruction is required.
Definition
USING:
accessors
combinators.short-circuit
compiler.cfg.comparisons
kernel
;
IN:
compiler.cfg.alias-analysis
:
useless-compare?
( insn -- ? )
{
[
cc>>
cc=
eq?
]
[
[
src1>>
]
[
src2>>
]
bi
[
resolve
vreg>ac
]
same?
not
]
}
1&&
;
inline