Handbook
Glossary
##compare-integer-imm-branch
Basic block instructions
Prev:
##compare-integer-branch
Next:
##test
Vocabulary
compiler
.
cfg
.
instructions
Definition
IN:
compiler.cfg.instructions
TUPLE:
##compare-integer-imm-branch
<
vreg-insn
src1 src2 cc insn#
;
Methods
USING:
accessors
compiler.cfg.gvn.avail
compiler.cfg.instructions
kernel
;
M:
##compare-integer-imm-branch
>avail-insn-uses
[
dup
>avail-vreg
or*
]
change-src1
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.linear-scan.assignment
kernel
;
M:
##compare-integer-imm-branch
assign-insn-uses
[
vreg>reg
]
change-src1
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.representations.rewrite
kernel
;
M:
##compare-integer-imm-branch
convert-insn-uses
[
converted-value
]
change-src1
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.codegen
cpu.architecture
kernel
;
M:
##compare-integer-imm-branch
generate-conditional-insn
[
src1>>
]
keep
[
src2>>
]
keep
[
cc>>
]
keep
drop
%compare-integer-imm-branch
;
USING:
combinators
combinators.short-circuit
compiler.cfg.instructions
compiler.cfg.representations.peephole
generic
kernel
;
M:
##compare-integer-imm-branch
optimize-insn
{
{
[
dup
{
[
src1-tagged?
]
[
src2-tagged-arithmetic?
]
}
1&&
]
[
>tagged-imm
]
}
[
M\
##compare-integer-imm-branch
optimize-insn
(call-next-method)
]
}
cond
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.renaming
kernel
;
M:
##compare-integer-imm-branch
rename-insn-uses
[
rename-value
]
change-src1
drop
;
USING:
combinators
compiler.cfg.gvn.comparisons
compiler.cfg.gvn.rewrite
compiler.cfg.instructions
kernel
;
M:
##compare-integer-imm-branch
rewrite
{
{
[
dup
fold-compare-integer-imm?
]
[
fold-compare-integer-imm-branch
]
}
{
[
dup
rewrite-into-test?
]
[
>test-branch
]
}
[
drop
f
]
}
cond
;
USING:
combinators
compiler.cfg.instructions
compiler.cfg.value-numbering.comparisons
compiler.cfg.value-numbering.rewrite
kernel
;
M:
##compare-integer-imm-branch
rewrite
{
{
[
dup
fold-compare-integer-imm?
]
[
fold-compare-integer-imm-branch
]
}
{
[
dup
rewrite-into-test?
]
[
>test-branch
]
}
[
drop
f
]
}
cond
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.ssa.construction.private
kernel
;
M:
##compare-integer-imm-branch
ssa-rename-insn-uses
[
top-name
]
change-src1
drop
;
USING:
compiler.cfg.instructions
compiler.cfg.representations.preferred
cpu.architecture
kernel
;
M:
##compare-integer-imm-branch
uses-vreg-reps
drop
{
int-rep
}
;
USING:
accessors
arrays
compiler.cfg.def-use
compiler.cfg.instructions
;
M:
##compare-integer-imm-branch
uses-vregs
src1>>
1array
;