[clang] [llvm] [TargetParser][ARM][NFC] Make string tables reloc-free (PR #206937)

Tomas Matheson via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 05:26:43 PDT 2026


https://github.com/tommat01 commented:

I'd like to understand a bit more about the motivation behind this, in order to know whether the loss in readability is worth it for the improved performance. I think it is relatively common for string tables to end up producing a lot of relocations in shared objects. Are there particular situations where the number of relocations is causing an issue? What percentage of the total is the 9kb, and does it have a noticeable effect on load time?

Could you not achieve the same result by changing the `StringRef` members to be `char [N]`?

https://github.com/llvm/llvm-project/pull/206937


More information about the llvm-commits mailing list