[all-commits] [llvm/llvm-project] 5f21ee: [LLD][ELF] Don't spill to same memory region (#129...

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Tue Mar 11 10:46:33 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f21ee20f84ac56377178770a7439e406c6d9b16
      https://github.com/llvm/llvm-project/commit/5f21ee20f84ac56377178770a7439e406c6d9b16
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2025-03-11 (Tue, 11 Mar 2025)

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    M lld/test/ELF/linkerscript/section-class.test

  Log Message:
  -----------
  [LLD][ELF] Don't spill to same memory region (#129795)

This prevents useless spills to the same memory region from causing
spilling to take too many passes to converge.

Handling this at spilling time allows us to relax the generation of
spill sections; specifically, multiple spills can now be generated per
output section. This should be fairly benign for performance, and it
would eventually allow linker scripts to express things like holes or
minimum addresses for parts of output sections. The linker could then
spill within an output section whenever address constraints are
violated.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list