[llvm] [InstrProf][X86] Mark non-directly accessed globals as large (PR #74778)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 19:33:01 PST 2023


================
@@ -49,6 +49,11 @@ GlobalVariable *createPrivateGlobalForString(Module &M, StringRef Str,
 // Returns nullptr on failure.
 Comdat *getOrCreateFunctionComdat(Function &F, Triple &T);
 
+// Place global in a large section for x86-64 ELF binaries to mitigate
+// relocation pressure. Should typically be used for metadata globals that
----------------
MaskRay wrote:

// Place global in a large section for x86-64 ELF binaries to mitigate
// relocation overflow pressure. This can be be used for metadata globals that ...

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


More information about the llvm-commits mailing list