[all-commits] [llvm/llvm-project] 2db9b6: [BOLT] Make instruction size a first-class annotat...
Maksim Panchenko via All-commits
all-commits at lists.llvm.org
Mon Nov 13 14:33:53 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2db9b6a93f9fc9b943f52efed51264ef8760cec2
https://github.com/llvm/llvm-project/commit/2db9b6a93f9fc9b943f52efed51264ef8760cec2
Author: Maksim Panchenko <maks at fb.com>
Date: 2023-11-13 (Mon, 13 Nov 2023)
Changed paths:
M bolt/include/bolt/Core/BinaryContext.h
M bolt/include/bolt/Core/MCPlus.h
M bolt/include/bolt/Core/MCPlusBuilder.h
M bolt/lib/Core/BinaryContext.cpp
M bolt/lib/Core/BinaryFunction.cpp
M bolt/lib/Core/MCPlusBuilder.cpp
M bolt/lib/Profile/DataReader.cpp
M bolt/lib/Rewrite/RewriteInstance.cpp
Log Message:
-----------
[BOLT] Make instruction size a first-class annotation (#72167)
When NOP instructions are used to reserve space in the code, e.g. for
patching, it becomes critical to preserve their original size while
emitting the code. On x86, we rely on "Size" annotation for NOP
instructions size, as the original instruction size is lost in the
disassembly/assembly process.
This change makes instruction size a first-class annotation and is
affectively NFCI. A follow-up diff will use the annotation for code
emission.
More information about the All-commits
mailing list