[all-commits] [llvm/llvm-project] 8d29f0: [lld-macho] Emit REBASE_OPCODE_ADD_ADDR_IMM_SCALED...
Daniel Bertalan via All-commits
all-commits at lists.llvm.org
Wed Jun 29 13:29:20 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8d29f0fdb9c64087687ac80074876d47b16efeab
https://github.com/llvm/llvm-project/commit/8d29f0fdb9c64087687ac80074876d47b16efeab
Author: Daniel Bertalan <dani at danielbertalan.dev>
Date: 2022-06-29 (Wed, 29 Jun 2022)
Changed paths:
M lld/MachO/SyntheticSections.cpp
A lld/test/MachO/rebase-opcodes.s
Log Message:
-----------
[lld-macho] Emit REBASE_OPCODE_ADD_ADDR_IMM_SCALED if possible
An ADD_ADDR rebase opcode's argument can be encoded as an immediate if
the offset is less than 15 * word size. This change reduces the size of
chromium_framework by 100+ KiB.
Differential Revision: https://reviews.llvm.org/D128798
More information about the All-commits
mailing list