[llvm] [BOLT] Check if symbol is in data area of function (PR #160143)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 7 10:37:12 PDT 2025
maksfb wrote:
> > Note that replacing `BL` with a `B` does not trigger it.
>
> That's because there's no link to a data area without `BL`, as with BL we save the return address to the link register.
With `B` we will generate different code eliminating the branch and making `Symbol->getOffset()` return a different value resulting in a different code path.
https://github.com/llvm/llvm-project/pull/160143
More information about the llvm-commits
mailing list