Should we use R_ARM_MOVT_PREL for ARM PIC?

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 21 06:41:35 PDT 2016


On 21 June 2016 at 09:20, Peter Smith <peter.smith at linaro.org> wrote:
> I think it is worth opening a bug report, at least to record it as a
> suggestion. My understanding is that MOVT/MOVW is generally faster
> than loading a literal on most ARM implementations, on the other hand
> a literal can be shared more easily which can give smaller code-size.
> For PC-relative offsets I think sharing is less likely so in theory
> MOVT/MOVW should be profitable in this case.
>
> I don't have any benchmarks to back any of that up, but it would be
> worth an investigation.

Cool. I reported pr28229 and pr28231.

Cheers,
Rafael


More information about the llvm-commits mailing list