[llvm] [RISCV] Don't outline pcrel_lo when the function has a section prefix (PR #107943)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 08:49:12 PDT 2024
jrtc27 wrote:
> @wangpc-pp yes that's right - I think AArch64 has a page-based hi/lo pair - but the representation here is using target-flags and hence is target-specific, so I think the overhead of generalising this check might be high.
It does, but AArch64 doesn't need this check. RISC-V's is weird because it leaves the low bits alone rather than clearing them like AArch64's ADRP so the %pcrel_lo relocation depends on knowing what the low bits will be from the %pcrel_hi one.
https://github.com/llvm/llvm-project/pull/107943
More information about the llvm-commits
mailing list