[llvm] [BOLT] Support runtime library hook via DT_INIT_ARRAY (PR #167467)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 00:34:03 PST 2025
================
@@ -1419,6 +1503,10 @@ Error RewriteInstance::discoverRtFiniAddress() {
}
if (!BC->FiniArrayAddress || !BC->FiniArraySize) {
+ // It is still possible to generate profile without fini hook if
+ // InstrumentationSleepTime is set
+ if (opts::InstrumentationSleepTime > 0)
----------------
maksfb wrote:
Since changes involving `opts::InstrumentationSleepTime` are unrelated to the `DT_INIT_ARRAY`, let's create a separate PR for them.
https://github.com/llvm/llvm-project/pull/167467
More information about the llvm-commits
mailing list