llvm-capstone/bolt/lib/Core
Maksim Panchenko ccb99dd126 [BOLT] Fix profile and tests for nop-removal pass
Summary:
Since nops are now removed in a separate pass, the profile is consumed
on a CFG with nops. If previously a profile was generated without nops,
the offsets in the profile could be different if branches included nops
either as a source or a destination.

This diff adjust offsets to make the profile reading backwards
compatible.

(cherry picked from FBD33231254)
2021-12-18 17:05:00 -08:00
..
BinaryBasicBlock.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
BinaryContext.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
BinaryData.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
BinaryEmitter.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
BinaryFunction.cpp [BOLT] Fix profile and tests for nop-removal pass 2021-12-18 17:05:00 -08:00
BinaryFunctionProfile.cpp [BOLT] Fix profile and tests for nop-removal pass 2021-12-18 17:05:00 -08:00
BinarySection.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
CMakeLists.txt Fix shared build 2021-11-15 20:01:48 -08:00
DebugData.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
DynoStats.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
Exceptions.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
JumpTable.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
MCPlusBuilder.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00
ParallelUtilities.cpp Rebase: [NFC] Refactor sources to be buildable in shared mode 2021-10-08 11:47:10 -07:00
Relocation.cpp [BOLT][NFC] Reformat with clang-format 2021-12-14 16:52:51 -08:00