[llvm] [bolt][aarch64] test to reproduce the issue with ldr reg, literal (PR #165723)
Alexey Moksyakov via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 30 07:44:12 PDT 2025
yavtuk wrote:
hi folks, I've faced with the issue related to ldr reg, literal instruction inside function with constant island. after emitCI the constants are placed by the end of the function and the distance to target for ldr is out of range.
I think such cases are possibly for ADR instruction either and also after long jump pass.
I found that this can be solved by functionality which we have for X86 in simplifyROdata pass.
I wrote quick pass for checking and replace ldr -> movk.
The case is not common that why how do you think should we add the separate pass for verification such cases or extend functionality for simplifyROdata for aarch64 and move the functionality from under the option to a permanent basis?
https://github.com/llvm/llvm-project/pull/165723
More information about the llvm-commits
mailing list