diff options
author | sinan <sinan.lin@linux.alibaba.com> | 2023-12-11 10:38:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 10:38:28 +0800 |
commit | fdb13cf531d35fa4c6aa71ce23898aa3942ed482 (patch) | |
tree | 5cb6174012e803b805b3f635fb9d15512b4a564e /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | af999c4be9f5643724c6f379690ecee4346b2b48 (diff) | |
download | llvm-fdb13cf531d35fa4c6aa71ce23898aa3942ed482.zip llvm-fdb13cf531d35fa4c6aa71ce23898aa3942ed482.tar.gz llvm-fdb13cf531d35fa4c6aa71ce23898aa3942ed482.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions