]> gitweb.factorcode.org Git - factor.git/commit
cpu.x86: use INC and DEC in favor of ADD reg, 1 and SUB reg, 1
authorBjörn Lindqvist <bjourne@gmail.com>
Sun, 8 May 2016 16:44:31 +0000 (18:44 +0200)
committerBjörn Lindqvist <bjourne@gmail.com>
Sun, 8 May 2016 16:44:31 +0000 (18:44 +0200)
commit274a0174fd990dddabc7e4f6a9bd521928b50681
tree46adb97034ee660e5dd51169172cfb8e4ab27bfb
parent5a2e1c953e7c53db93f21feec08ebc815351d703
cpu.x86: use INC and DEC in favor of ADD reg, 1 and SUB reg, 1

The encoding for INC reg and DEC reg is one byte shorter so using it
shaves of a few bytes from the generated code.
basis/cpu/x86/x86-tests.factor
basis/cpu/x86/x86.factor