[all-commits] [llvm/llvm-project] 635756: [X86] Place data in large sections for large code ...

Arthur Eubanks via All-commits all-commits at lists.llvm.org
Fri Nov 17 15:47:43 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 635756e4f3c5c0d31c11cea7b80108ea38570323
      https://github.com/llvm/llvm-project/commit/635756e4f3c5c0d31c11cea7b80108ea38570323
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-11-17 (Fri, 17 Nov 2023)

  Changed paths:
    M llvm/lib/Target/TargetMachine.cpp
    M llvm/test/CodeGen/X86/code-model-elf-sections.ll

  Log Message:
  -----------
  [X86] Place data in large sections for large code model (#70265)

This allows better interoperability mixing small/medium/large code model
code since large code model data can be put into separate large
sections.

And respect large data threshold under large code model.
gcc also does this: https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html.

See https://groups.google.com/g/x86-64-abi/c/jnQdJeabxiU.




More information about the All-commits mailing list