[all-commits] [llvm/llvm-project] 06f13f: [BOLT] Fix references in ignored functions in CFG ...
Maksim Panchenko via All-commits
all-commits at lists.llvm.org
Mon Jun 2 12:34:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 06f13f868490adb075b4fbe2edd1432723ba7cdc
https://github.com/llvm/llvm-project/commit/06f13f868490adb075b4fbe2edd1432723ba7cdc
Author: Maksim Panchenko <maks at fb.com>
Date: 2025-06-02 (Mon, 02 Jun 2025)
Changed paths:
M bolt/include/bolt/Core/BinaryFunction.h
M bolt/lib/Core/BinaryContext.cpp
M bolt/lib/Core/BinaryFunction.cpp
M bolt/lib/Rewrite/RewriteInstance.cpp
A bolt/test/AArch64/patch-ignored.s
A bolt/test/X86/patch-ignored.s
Log Message:
-----------
[BOLT] Fix references in ignored functions in CFG state (#140678)
When we call setIgnored() on functions that already have CFG built,
these functions are not going to get emitted and we risk missing
external function references being updated.
To mitigate the potential issues, run scanExternalRefs() on such
functions to create patches/relocations.
Since scanExternalRefs() relies on function relocations, we have to
preserve relocations until the function is emitted. As a result, the
memory overhead without debug info update could reach up to 2%.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list