[all-commits] [llvm/llvm-project] fdb13c: [BOLT] Fix local out-of-range stub issue in LongJm...
sinan via All-commits
all-commits at lists.llvm.org
Sun Dec 10 18:38:40 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fdb13cf531d35fa4c6aa71ce23898aa3942ed482
https://github.com/llvm/llvm-project/commit/fdb13cf531d35fa4c6aa71ce23898aa3942ed482
Author: sinan <sinan.lin at linux.alibaba.com>
Date: 2023-12-11 (Mon, 11 Dec 2023)
Changed paths:
M bolt/lib/Passes/LongJmp.cpp
Log Message:
-----------
[BOLT] Fix local out-of-range stub issue in LongJmp (#73918)
If a local stub is out-of-range, at LongJmp we will try to find another
local stub first. However, The original implementation do not work as
expected and it leads to an infinite loop between replaceTargetWithStub
and fixBranches.
After this patch, we first convert the target of BB back to the target
of the local stub, and then look up for other valid local stubs and so
on.
More information about the All-commits
mailing list