[all-commits] [llvm/llvm-project] 445bc8: [BOLT] Use 32-bit MOV to zero 64-bit register in i...
Amir Ayupov via All-commits
all-commits at lists.llvm.org
Sun Jun 19 11:34:50 PDT 2022
Author: Amir Ayupov <aaupov at fb.com>
Date: 2022-06-19 (Sun, 19 Jun 2022)
[BOLT] Use 32-bit MOV to zero 64-bit register in instrumentation code
Instead of `movabsq $0x0, %rax` emit shorter equivalent `movl $0x0, %eax`.
Intel SDM, 126.96.36.199 General-Purpose Registers in 64-Bit Mode:
>32-bit operands generate a 32-bit result, zero-extended to a 64-bit result in
> the destination general-purpose register.
Reviewed By: rafauler
Differential Revision: https://reviews.llvm.org/D127045
More information about the All-commits